From bc1f591477af04a2e7dde2b4fe2338cea20146b5 Mon Sep 17 00:00:00 2001 From: Wayne Nilsen Date: Tue, 15 Sep 2020 11:59:25 -0400 Subject: [PATCH] Fix homebrew instructions The instructions for installing a specific version of solidity using homebrew no longer work with the latest version of homebrew. There is a specific error message that indicates that raw github links are forbidden. This documents the workaround that is now needed. This is how I did it but of course I am open so suggestions. --- docs/installing-solidity.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/installing-solidity.rst b/docs/installing-solidity.rst index 7a5c52d71..d975c2611 100644 --- a/docs/installing-solidity.rst +++ b/docs/installing-solidity.rst @@ -163,8 +163,13 @@ Homebrew formula directly from Github. View `solidity.rb commits on Github `_. -Follow the history links until you have a raw file link of a -specific commit of ``solidity.rb``. +Copy the commit hash of the version you want and check it out on your machine. + +.. code-block:: bash + + git clone https://github.com/ethereum/homebrew-ethereum.git + cd homebrew-ethereum + git checkout Install it using ``brew``: @@ -172,7 +177,7 @@ Install it using ``brew``: brew unlink solidity # eg. Install 0.4.8 - brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/77cce03da9f289e5a3ffe579840d3c5dc0a62717/solidity.rb + brew install solidity.rb Gentoo Linux has an `Ethereum overlay `_ that contains a solidity package. After the overlay is setup, ``solc`` can be installed in x86_64 architectures by: