欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

rhel5.7下安裝gearmand及啟動的方法

 更新時間:2014年07月08日 15:09:51   投稿:shichen2014  
這篇文章主要介紹了rhel5.7下安裝gearmand及啟動的方法,需要的朋友可以參考下

本文簡述了在rhel5.7下安裝gearmand及啟動的方法,供大家學習參考!

首先,到官網https://launchpad.net/gearmand/下載gearmand的源碼包,傳到rhel5.7的系統(tǒng)上,并解壓。
 
運行configure:

[@localhost gearmand-1.1.11]# ./configure --prefix=/usr/local/gearman --with-mysql --with-sqlite3=no 

這時候會出現(xiàn)報如下錯誤:

checking for Boost headers version >= 1.39.0... no 
configure: error: cannot find Boost headers version >= 1.39.0 
ok,http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download

此時需要下載boost,并解壓:

./bootstrap.sh --prefix=/usr/local/boost/  
./b2 install 
 

 這個過程需要等待一段時間,詳情可參考官網:dochttp://www.boost.org/doc/libs/1_55_0/more/getting_started/unix-variants.html
 
安裝完成之后,回到gearman目錄,執(zhí)行如下命令:

CPPFLAGS=-I/usr/local/boost/include LDFLAGS=-L/usr/local/boost/lib ./configure --prefix=/usr/local/gearman --with-mysql --with-sqlite3=no 

這時還會報如下錯誤:

checking for gperf... no 
configure: error: could not find gperf 

緊接著執(zhí)行yum安裝:

再次執(zhí)行以上的configur,再沒有報錯。OK,可以進行編譯了。
在執(zhí)行make命令時,報了很多的錯,其中看到有個:

./libgearman-1.0/gearman.h:53:27: error: tr1/cinttypes: No such file or directory 

可以推斷是gcc編譯器的問題,執(zhí)行命令:

yum install gcc44 gcc44-c++ libstdc++44-devel -y 

安裝完畢之后執(zhí)行:

CXX=/usr/bin/g++44 CC=/usr/bin/gcc44 CPPFLAGS=-I/usr/local/boost/include LDFLAGS=-L/usr/local/boost/lib ./configure --prefix=/usr/local/gearman --with-mysql --with-sqlite3=no  

make && make install 

至此,安裝成功,執(zhí)行以下命令啟動(隊列持久化保存)

/usr/local/gearman/sbin/gearmand -p 4730 -L 0.0.0.0 --log-file=/tmp/gearmand-4730.log --pid-file=/tmp/gearmand-4730.pid -q MySQL --mysql-host=localhost --mysql-user=root --mysql-db=gearman --verbose DEBUG -d 

啟動時,發(fā)現(xiàn)有報如下錯誤:

/usr/local/gearman/sbin/gearmand: error while loading shared libraries: libboost_program_options.so.1.55.0: cannot open shared object file: No such file or directory 

那么很明顯,是由于鏈接文件找不到的緣故所導致的。執(zhí)行如下命令:

vi /etc/ld.so.conf.d/gearman.conf 

插入以下內容,保存退出

/usr/local/boost/lib/ 
/usr/local/gearman/lib/ 

執(zhí)行命令

ldconfig 

再次執(zhí)行上面的啟動命令,至此即可啟動gearmand.

相關文章

最新評論