Kyoto Tycoon のインストールメモ
Kyoto Tycoon のインストールメモ
AWS 環境だけど、root さえあれば特に変わるところ無し。
root 無い場合はディレクトリ指定が必要。
今回は指定しなかったので、そこはパス。root あると楽だわ・・・。
ちなみに、AMI は、これ使った。一番普通のやつだと思う。
amzn-ami-pv-2012.03.3.x86_64-ebs (ami-2819aa29)
手順はとても簡単だけど micro インスタンスだと
make に 20 分くらいかかる。micro じゃなくても make は
結構時間かかる。
必要なコマンドをインストール
gcc++ と make が入ってない環境だったので、インストール
sudo yum install gcc
sudo yum install gcc-c++
sudo yum install make
必要なパッケージをゲット
wget http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz
wget http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz
wget http://zlib.net/zlib-1.2.7.tar.gz
zlib のインストール
tar zxvf zlib-1.2.7.tar.gz
cd zlib-1.2.7
./configure
make
make install
cd ..
Kyoto Cabinet のインストール
tar zxvf kyotocabinet-1.2.76.tar.gz
cd kyotocabinet-1.2.76
./configure
make
make install
cd ..
Kyoto Tycoon のインストール
tar zxvf kyototycoon-0.9.56.tar.gz
cd kyototycoon-0.9.56
./configure
make
make install
cd ..
以上。
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
一個、「あれ?」と思ったのが、Kyoto Cabinet インストール中に出た
以下のエラー。
./configure
#================================================================
Configuring Kyoto Cabinet version 1.2.76.
#================================================================
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/root/kyotocabinet-1.2.76':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
[Linux]confgureでC++ preprocessor "/lib/cpp" fails sanity check | うえちょこ@ぼろぐ
で原因判明。c++ コンパイラ入らないのか・・・。
手元の環境では、これを参考に
してあげると無事 ./configure 通った。
ldconfig
もう一個。インストール直後はライブラリにパスが通ってないので、
Ubuntuにkyoto tycoonをインストールしてみた。 - メイクミラクル 〜大逆転〜
の ldconfig あたりの手順を実行する必要がある。(手抜き)