在亚马逊Linux上编译gearman

时间:2015-10-30 09:41:24

标签: gearman aws-ec2

我正在尝试以下列方式安装gearman

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

我缺少哪些图书馆?

1 个答案:

答案 0 :(得分:0)

I just needed to update repositories sudo yum -y update Just in case, someone needs to install gearman along with the web ui and gearman manager, I prepared a set of scripts https://github.com/koustubh25/gearmanBuildScript