[ad_1]
When deploying contracts, you should use the latest released version of Solidity. This is because breaking changes, as well as new features and bug fixes are introduced regularly.
Visit Solidity Documentation and check the installation process, As of 2023 Febuary, you can follow below guide.
Open your Ubuntu or Debian Linux terminal and use below commands to install it directly using apt
: Recommended to use if you are using Windows then through WSL Linux or any other Linux system:
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
Once you have installed, check the version to verify that solc has been installed properly:
web3doctor@DrGupta:~$ solc --version
solc, the solidity compiler commandline interface
Version: 0.8.18+commit.87f61d96.Linux.g++
Furthermore, some Linux distributions provide their own packages. For example, Arch Linux has packages for the latest development version:
pacman -S solidity
In MacOS , solidity compiler can be installed through Homebrew as a build-from-source-version.
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
Sometimes, when you try to add external source of repositories. You have to use sudo add-apt-repository ppa:ethereum/ethereum
to your Ubuntu machine to install solidity compiler solc
, you might get error if the machine is a new installed system of Ubuntu.
first you have to install software-properties-common
using below command:
sudo apt install software-properties-common
and accept by typing y,
Once you’ve installed software-properties-common, you should update your system:
sudo apt-get update
then you can continue the installation and adding the repository.
Remix is recommended for small contracts and for quick learning solidity just like I have showed in my other articles. Accessing Remix online, you do not need to install anything, just visit Remix website and you are good to go.
New to trading? Try crypto trading bots or copy trading on best crypto exchanges
[ad_2]
Source link