LoginSignup
4
4

More than 5 years have passed since last update.

monacoindをcentos6でコンパイルする

Last updated at Posted at 2014-09-13

monacoin のコンパイル

centos6にインストールするときに注意点が3つあります

  • opensslに必要なモジュールが組み込まれていないためソースからコンパイルする必要がある
  • miniupnpをインストール時に場所の指定をする必要がある
  • monacoinコンパイル時にオプション指定する必要がある

1.yumでインストール

yum install -y git gcc gcc-c++ boost-* zlib-devel db4-cxx db4-devel

2.opensslをダウンロードしてインストール

wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz
tar zxvf openssl-1.0.1i.tar.gz 
cd openssl-1.0.1i
./config 
make
make install
cd ..

3.miniupnpをダウンロードしてインストール

git clone https://github.com/miniupnp/miniupnp.git
cd miniupnp/miniupnpc
make
LIBDIR=lib64 make install
cd ../..

4.monacoinをダウンロードしてインストール

git clone https://github.com/monacoinproject/monacoin.git
cd monacoin/src
LDFLAGS=-L/usr/local/ssl/lib make -f makefile.unix BOOST_LIB_SUFFIX=-mt

5.起動確認する

./monacoind -rpcuser=hoge -rpcpassword=hogehoge

特にエラー終了しないかどうか確認して問題なければコンパイル完了です。
enjoy

コンパイルエラーが出たとき

メモリが足りない場合は以下のコマンドでswapを追加できます

dd if=/dev/zero of=/swap bs=1024 count=1000000
mkswap /swap
swapon /swap
4
4
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4