TokyoTyrantのインストール

提供: Wikiducca
2019年1月1日 (火) 13:08時点におけるThe Pioneer (ノート | 投稿記録)による版

移動: 案内検索

Wikiduccaは終了しました。今後はゴールドペディアをご利用ください。== bzip2 and libbzip2 == * ver 1.0.5 以上が推奨されている。 * CentOS5.X に標準でインストールされているバージョンは 1.0.3。 また現在、yum で アップデートできるのは、"1.0.3-6" なのでソースから入れ直す。 <pre> # wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz # tar zxvf bzip2-1.0.6.tar.gz # cd bzip2-1.0.6 # cp -p Makefile Makefile.org # vi Makefile (※1) # diff Makefile Makefile.org 18c18 < CC=gcc -fPIC --- > CC=gcc # make # make install # /sbin/ldconfig </pre> ※1) Makefile にて -fPIC オプションを付けなかった場合、Tokyo Cabinet の make 時に以下のエラーになった。 <pre> /usr/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libbz2.a: could not read symbols: Bad value collect2: ld はステータス 1 で終了しました make: *** [libtokyocabinet.so.9.9.0] エラー 1 </pre> また、 Tokyo Cabinet の ./configure オプションに、 --libdir=/usr/lib64/ を付ければ make は通ったのだが、/usr/lib64/ には RPM 版の libbz2(ver 1.0.3) があったため、こちらを使用してしまうと思われたため中止した。 [http://jiakr.com/article?u=libbz2-a-libz-so-lead-tokyocabinet-make-failure-of-problem-solving-approach&v=3 参考サイト] == Tokyo Cabinet == <pre> # wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.46.tar.gz # tar zxvf tokyocabinet-1.4.46.tar.gz # cd tokyocabinet-1.4.46 # ./configure # make ~ 省略 ~ #================================================================ # Ready to install. #================================================================ # make check ~ 省略 ~ #================================================================ # Checking completed. #================================================================ # make install ~ 省略 ~ #================================================================ # Thanks for using Tokyo Cabinet. #================================================================ </pre> == Tokyo Tyrant == <pre> # wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz # tar zxvf tokyotyrant-1.1.41.tar.gz # cd tokyotyrant-1.1.41 # ./configure # make ~ 省略 ~ #================================================================ # Ready to install. #================================================================ # make install ~ 省略 ~ #================================================================ # Thanks for using Tokyo Tyrant. #================================================================ </pre> [[Category:フリーソフト・オープンソース]]