我正试图以以下方式安装齿轮手
sudo yum -y install libevent-devel gcc-c++ boost-devel libuuid-devel gperf mysql-devel
wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz
tar -xvzf gearmand-1.1.12.tar.gz
cd gearmand-1.1.12
./configure --with-mysql
到目前为止效果很好。现在我做
make
我得到以下错误
CXX libgearman/libgearman_libgearman_la-check.lo
In file included from /usr/include/c++/4.8.3/bits/move.h:57:0,
from /usr/include/c++/4.8.3/bits/stl_pair.h:59,
from /usr/include/c++/4.8.3/utility:70,
from /usr/include/c++/4.8.3/algorithm:60,
from libgearman/check.cc:44:
/usr/include/c++/4.8.3/type_traits:399:12: error: redefinition of 'struct std::is_function<_Res(_ArgTypes ...)>'
struct is_function<_Res(_ArgTypes...) volatile>
^
/usr/include/c++/4.8.3/type_traits:383:12: error: previous definition of 'struct std::is_function<_Res(_ArgTypes ...)>'
struct is_function<_Res(_ArgTypes...)>
^
/usr/include/c++/4.8.3/type_traits:403:12: error: redefinition of 'struct std::is_function<_Res(_ArgTypes ..., ...)>'
struct is_function<_Res(_ArgTypes......) volatile>
^
/usr/include/c++/4.8.3/functional:1862:5: error: redefinition of 'template<class _Member, class _Class> std::_Mem_fn<_Tp _Class::*> std::__callable_functor(_Member _Class::* const&)'
__callable_functor(_Member _Class::* const volatile &__p)
^
/usr/include/c++/4.8.3/functional:1852:5: error: 'template<class _Member, class _Class> std::_Mem_fn<_Tp _Class::*> std::__callable_functor(_Member _Class::* const&)' previously declared here
__callable_functor(_Member _Class::* const &__p)
^
make[1]: *** [libgearman/libgearman_libgearman_la-check.lo] Error 1
make[1]: Leaving directory `/usr/var/tmp/gearmand-1.1.12'
make: *** [all] Error 2
我缺少哪些图书馆?
我只需要更新存储库
sudo yum -y update
为了以防万一,有人需要安装gearman以及web ui和gearman管理器,我准备了一组脚本https://github.com/koustubh25/gearmanBuildScript