RealPath:
WebPath:
2016/11/22 18:42 (JST) 更新
契約プログラム >>

Solidity導入

Contents

CentOS 7.2 へ導入する例

cmake 3.7.0 (3 以上)

# yum -y install zlib-devel libcurl-devel
# wget https://cmake.org/files/v3.7/cmake-3.7.0.tar.gz
# tar xzvf cmake-3.7.0.tar.gz
# cd cmake-3.7.0
# ./configure --system-curl
# make
# make install
$ cmake --version
cmake version 3.7.0

boost (1.54 以上)

# wget https://sourceforge.net/projects/boost/files/boost/1.62.0/boost_1_62_0.tar.gz
# tar xzvf boost_1_62_0.tar.gz
# cd boost_1_62_0
# ./bootstrap.sh
# ./b2 install

# echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
# /sbin/ldconfig

# vi /etc/profile
export BOOST_INCLUDEDIR=/usr/local/include
export BOOST_LIBRARYDIR=/usr/local/lib

jsoncpp

※参考: https://github.com/open-source-parsers/jsoncpp/blob/master/README.md

# git clone https://github.com/open-source-parsers/jsoncpp.git
# cd jsoncpp
# mkdir -p build/release
# cd build/release/
# cmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ../..
# make
# make install

solidity

# git clone --recursive https://github.com/ethereum/solidity.git
# cd solidity
# git checkout release    … release ブランチをビルドする
# mkdir build
# cd build
# cmake ..
# make
# make install
# /sbin/ldconfig
$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.4+commit.4633f3de.mod.Linux.g++