編譯gearman提示缺少boost,編譯gearmanboost
編譯german時提示缺少boost:
checking for boostlib >= 1.39... configure: We could not detect the boost libraries (version 1.39 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
configure: error: could not find boost
解決辦法
# yum install -y boost boost-devel
即可
在redhat安裝gearman,在make的時,報錯,怎解決?各位大俠
刪除了系統原帶的sqlite3 ,到官網上下一個源碼,重新編譯安裝sqlite3。
如:
把sqlite3安裝到 /usr/local/sqlite3
tar zxf sqlite3.xxxx.tar.gz
cd sqlite.3.xxxx
./configura --prefix=/usr/local/sqlite3
make && make install
cd ..
最後在編譯Gearman時帶上 --with-sqlite3=/usr/local/sqlite3,告訴編譯器應該使用這個新的sqlite即可。