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
Java Installation Process
If you currently do not have Solidity installed on your machine, you would need to do so.
Mac OS
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
Windows
Download the Windows binary file
[solidity-windows.zip](http://solidity-windows.zip)
from the Official Ethereum Github Page.Extract the
solidity-windows.zip
into a new folderProceed through the installation with Windows Installer
Once the installation is completed. Launch a command prompt and
cd
into the directory wheresolc.exe
was extracted toCheck the version of the Solidity compiler using
solc --version
commandLinux
git clone [https://aur.archlinux.org/snapd.git](https://aur.archlinux.org/snapd.git)
cd
into the directory wheresolc.exe
was extracted tosudo systemctl enable --now snapd.socket
/var/lib/snapd/snap
and/snap
use the following command:sudo ln -s /var/lib/snapd/snap /snap
sudo snap install solc