다운로드 링크
https://github.com/ethereum/solidity/releases
컴파일 및 설치 방법 참고:
https://solidity.readthedocs.io/en/latest/installing-solidity.html#building-from-source
--- 여기서 부터는 위에 링크 참조해서 실제로 설치했던 명령 (루분투 18.04) ---
0. 서버에 컴파일에 필요한 프로그램을 설치합니다:
sudo apt-get install build-essential software-properties-common -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt-get install gcc-snapshot -y
1. 먼저 맨 위에 다운로드 링크에서 원하는 버전을 문자열 찾기로 검색해서 찾습니다.
2. solidity_0.4.xx.tar.gz 와 같이 언더바(under bar ↘ _ )가 들어가 있는 tar.gz파일을 다운로드 받습니다.
3. 파일에 맞게 압축을 해제 한 후, 해제된 폴더로 들어갑니다:
tar -zxvf solidity_0.4.xx.tar.gz <-
cd solidity_0.4.xx
4. 필요한 파일(의존성 외부 파일) 설치합니다:
./scripts/install_deps.sh
5. 컴파일 및 설치합니다.(/usr/local/bin에 설치되므로 관리자 권한 필요합니다):
sudo ./scripts/build.sh
끝