If you currently do not have Solidity installed on your machine, you would need to do so.
Install HomeBrew by pasting the command in the terminal:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Note: if you already have HomeBrew installed, please make sure it is updated to the latest version by pasting the command in the terminal:
brew update and skip to Step 6.
After successful installation, you should be able to see below message in terminal,
Open Mac App Store and search for XCode
Note: If it’s already installed on your machine then update or skip this step.
Click on Xcode search item from the list and click on Install
Note: Review and agree to the terms of the license agreement upon installation.
To install Xcode command line tools, run following command
xcode-select — install
In order to install Solidity compiler first you need to add Ethereum package to catalog use the following command
brew tap ethereum/ethereum
Finally, install Solidity compiler using the following command
brew install solidity
As soon as the installation completes, you are all set up
Download the Windows binary file
[solidity-windows.zip](http://solidity-windows.zip) from the Official Ethereum Github Page.
solidity-windows.zip into a new folder
Proceed through the installation with Windows Installer
Once the installation is completed. Launch a command prompt and
cd into the directory where
solc.exe was extracted to
Check the version of the Solidity compiler using
solc --version command
git clone [https://aur.archlinux.org/snapd.git](https://aur.archlinux.org/snapd.git)
cdinto the directory where
solc.exewas extracted to
sudo systemctl enable --now snapd.socket
/snapuse the following command:
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install solc