Installation on Linux

solc can be installed on a Linux Ubuntu operating system using the following commands:

$ sudo apt-get install solc 

If PPAs are not already installed, those can be installed by running the following command:

$ sudo add-apt-repository ppa:ethereum/ethereum  
$ sudo apt-get update 

In order to verify the existing version of the solc and verify that it is installed, the following command can be used:

$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.19+commit.c4cbbb05.Darwin.appleclang  

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.