CentOS6.5(32bit)にmemcachedをインストール
CentOS6.5(32bit)にmemcached1.4.24をインストールした。
その際のメモを記述しておく。
memcachedは以下のコマンドより取得し、解凍、インストールを試みた。
wget http://memcached.org/latest
tar -zxvf memcached-1.x.x.tar.gz
cd memcached-1.x.x
./configure && make && make test && make install
すると、以下のようなメッセージが。。。
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
・・・・
checking for library containing gethostbyname... none required
checking for libevent directory... configure: error: libevent is required. You can get it from http://www.monkey.org/ ~provos/libevent/
If it's already installed, specify its path using --with-libevent=/dir/
どうやらエラーらしい。
yum install libevent でlibeventをインストールしても解消せず。。。
調べてみると、yum install libevent-develで解消するとのことなので、yum install libevent-develを実行して、再度memcachedのインストールを試みると
./configure && make && make test && make install
checking build system type... i686-pc-linux-gnu
・・・・
prove ./t
make: prove: Command not found
make: *** [test] Error 127
?!
Errorとの表示から、インストールに失敗しているようだ。
make: prove: Command not foundとあるので、proveコマンドが見つからないらしい。
yum provides *bin/prove
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
updates/filelists_db | 2.1 MB 00:23
perl-Test-Harness-3.17-136.el6.i686 : Run Perl standard test scripts with statistics
Repo : base
Matched from:
Filename : /usr/bin/prove
perl-Test-Harness-3.17-136.el6_6.1.i686 : Run Perl standard test scripts with statistics
Repo : updates
Matched from:
Filename : /usr/bin/prove
これでproveコマンドを実行できるようにするにはperl-Test-Hamessをインストールすればよいことが分かった。
yum install perl-Test-Harness-3.17-136.el6_6.1.i686
と実行し、
./configure
make
make install
することで、memcachedのインストールが完了した。
あとは、
memcached -d -m 64 -p 11211
でmemcachedにアクセスができる。
参考サイト
memcachedのインストール - [yum/Linux [Red Hatなど]] ぺんたん info
64bit CentOSにmemcachedをインストール - 情報科学屋さんを目指す人のメモ(FC2ブログ版)
CentOS に memcached をインストールする | dTblog
小技Linux-CentOSにmemcachedをインストール
memcached - a distributed memory object caching system