sina memcachedb安装记录

下载需要安装的源码包:
用的是memcachedb-1.2.0
BerkeleyDB.5.1
wget http://memcachedb.googlecode.com/files/memcachedb-1.2.0.tar.gz
BerkeleyDB.5.1 这个需要去Oracle注册下载
http://www.oracle.com/database/berkeley-db/db/index.html

memcachedb 需要BerkeleyDB的支持,还有libevent,首先要安装BerkeleyDB 5.1
tar zxvf db-5.1.25.tar.gz
cd db-5.1.25
cd build_unix
../dist/configure
make ; make install
rpm -qa | grep libevent
vim /etc/ld.so.conf
. /usr/local/lib
/usr/local/BerkeleyDB.5.1/lib/
然后运行ldconfig
安装memcachedb
tar zxvf memcachedb-1.2.0.tar.gz
cd memcachedb-1.2.0
./configure --enable-threads
    再编译到这,出现错误:
checking for library containing db_create... no
configure: error: cannot find libdb.so in /usr/local/BerkeleyDB.4.7/lib
需要修改 configure 中的BerkeleyDB中的预编译参数
vim configure
找到bdbdir="/usr/local/BerkeleyDB.4.7"
改为
bdbdir="/usr/local/BerkeleyDB.5.1"
再次编译,成功编译过去
make ; make install 
这样就算完成安装了。
先记录到这,以后再记录其他的
 

你可能感兴趣的:(职场,find,libevent,休闲,cannot,安装memcachedb,libdb.so)