📜  安装带有版本的 Solidity 编译器命令 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:46.733000             🧑  作者: Mango

代码示例1
$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.24+commit.e67f0147.Linux.g++
$ SOLC_VERSION=0.5.2 solc --version
solc, the solidity compiler commandline interface
Version: 0.5.2+commit.1df8f40c.Linux.g++