代码改变世界

Gearman 提示 A version of Boost >= 1.39 must be installed.

2013-06-10 23:34  游乐场123  阅读(178)  评论(0编辑  收藏  举报

A version of Boost >= 1.39 must be installed.

  1. Download epel-release-5-4.noarch.rpm (or suitable version) from http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F
  2. Install the EPEL repo list using “rpm -Uvh epel-release-5-4.noarch.rpm”
  3. yum install boost141-devel
  4. ln -s /usr/include/boost141/boost/ /usr/include/boost
  5. export LDFLAGS=”-L/usr/lib64/boost141”
  6. export LD_LIBRARY_PATH=/usr/lib64/boost141:$LD_LIBRARY_PATH
  7. sudo yum install e2fsprogs-devel e2fsprogs

Then:

  1. yum install gcc44 gcc-c++

原因 貌似是gcc版本过低了
对策:libmemcached-1.0.2 版本以上升级编译器版本,提示还要安装MYSQL的开发库才能编译。
# yum install gcc44 gcc44-c++ libstdc++44-devel

# export CC=/usr/bin/gcc44
# export CXX=/usr/bin/g++44
# ./configure

Compile and install:

./configure

make

sudo make install