Cant build on Amazon Linux

481 views
Skip to first unread message

Philip Kubat

unread,
Nov 6, 2012, 4:27:40 PM11/6/12
to gea...@googlegroups.com
Also created:  https://bugs.launchpad.net/gearmand/+bug/1075340

Amazon Linux AMI release 2012.09 (CentOS)

I tried 0.41 and 0.37 (I was able to build 0.33).  Any thoughts would be helpfiul.  Thanks!

Thanks!

Cant compile 0.41 (also 0.37)

checking for Boost headers version >= 1.39.0... yes
checking for Boost's header version... 1_41
checking for the toolset name used by Boost for g++... gcc46 -gcc
checking boost/program_options.hpp usability... yes
checking boost/program_options.hpp presence... yes
checking for boost/program_options.hpp... yes
checking for the Boost program_options library... yes
checking for the flags needed to use pthreads... -pthread
checking boost/thread.hpp usability... no
checking boost/thread.hpp presence... yes
configure: WARNING: boost/thread.hpp: present but cannot be compiled
configure: WARNING: boost/thread.hpp: check for missing prerequisite headers?
configure: WARNING: boost/thread.hpp: see the Autoconf documentation
configure: WARNING: boost/thread.hpp: section "Present But Cannot Be Compiled"
configure: WARNING: boost/thread.hpp: proceeding with the compiler's result
configure: WARNING: ## -------------------------------------------------- ##
configure: WARNING: ## Report this to https://bugs.launchpad.net/gearmand ##
configure: WARNING: ## -------------------------------------------------- ##
checking for boost/thread.hpp... no
configure: error: cannot find boost/thread.hpp




dwang

unread,
Nov 6, 2012, 8:50:10 PM11/6/12
to gea...@googlegroups.com
you need to install the boost thread library.

--
 
 



--
Best regards
ydwang

BUPT INSIDE

dwang

unread,
Nov 6, 2012, 9:04:37 PM11/6/12
to gea...@googlegroups.com
you need to install the boost thread library.

On Wed, Nov 7, 2012 at 5:27 AM, Philip Kubat <phi...@freepricealerts.com> wrote:

--
 
 

Philip Kubat

unread,
Nov 7, 2012, 12:33:56 PM11/7/12
to gea...@googlegroups.com
Boost is installed and configure finds is.

checking for Boost headers version >= 1.39.0... yes
checking for Boost's header version... 1_41
...
configure: WARNING: boost/thread.hpp: present but cannot be compiled



#rpm  -qa | grep boost
boost-thread-1.41.0-11.8.amzn1.x86_64
boost-regex-1.41.0-11.8.amzn1.x86_64
boost-signals-1.41.0-11.8.amzn1.x86_64
boost-1.41.0-11.8.amzn1.x86_64
boost-date-time-1.41.0-11.8.amzn1.x86_64
boost-graph-1.41.0-11.8.amzn1.x86_64
boost-iostreams-1.41.0-11.8.amzn1.x86_64
boost-devel-1.41.0-11.8.amzn1.x86_64
boost-system-1.41.0-11.8.amzn1.x86_64
boost-wave-1.41.0-11.8.amzn1.x86_64
boost-program-options-1.41.0-11.8.amzn1.x86_64
boost-test-1.41.0-11.8.amzn1.x86_64
boost-filesystem-1.41.0-11.8.amzn1.x86_64
boost-serialization-1.41.0-11.8.amzn1.x86_64
boost-python-1.41.0-11.8.amzn1.x86_64

B

unread,
Nov 8, 2012, 12:22:27 PM11/8/12
to gea...@googlegroups.com
Philip,

I'm having the same problem you are having with an Amazon EC2 instance running the Linux AMI.  I was wondering if it had anything to do with a 32bit version vs 64bit, and have tried both with the same issue.

I saw a mention somewhere else that there is problem with the Boost libraries from the Amazon YUM repo, however I do not understand how to install them manually.  I think there maybe a configuration switch that is needed to tell it where the library headers are.

Have you had any luck resolving it?

--
Thanks in advance
Blaine

Philip Kubat

unread,
Nov 8, 2012, 3:32:02 PM11/8/12
to gea...@googlegroups.com
Blaine (and all)

I also sent this to AWS support.  It seems there is an issue with gcc 4.6 and the supplied boost libraries, one need to us gcc 4.4


Here is Amazon's response
On Thu, Nov 8, 2012 at 1:59 PM, Amazon wrote:
Hi,

Our Amazon Linux team have investigated this and reports that it looks like the version of boost we supply is incompatible with gcc 4.6. They are looking into how to resolve this. Thanks for reporting the problem to us.

Our Amazon Linux team have also reported that its possible to build gearmand against boost using gcc 4.4 instead. I have tested this myself and it worked. Please let me know if this works for you. This should allow you to continue with your build process. My steps:

yum install gcc44 gcc44-c++ make
yum install boost-devel libevent-devel libuuid-devel sqlite-devel zlib-devel
wget https://launchpad.net/gearmand/1.0/0.41/+download/gearmand-0.41.tar.gz
tar zxf gearmand-0.41.tar.gz
cd gearmand-0.41
./configure
make


 

B

unread,
Nov 8, 2012, 3:58:58 PM11/8/12
to gea...@googlegroups.com
Kubes,

Did that work for you?

I just followed the instructions at http://www.spidersoft.com.au/2012/gearman-installation-on-centos-and-ami-linux/ to compile the boost library outside of Amazon's YUM repo.  It worked, and I was able to install pecl gearman just fine.

However when I try to start gearmand I get:

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


It took awhile to compile everything, so I'm curious if you have something working then using those steps you provided?

--
Thanks
Blaine

B

unread,
Nov 8, 2012, 4:06:14 PM11/8/12
to gea...@googlegroups.com
Grasping at straws here I tried:

sudo cp /usr/lib64/libboost_program_options.so /usr/lib64/libboost_program_options.so.1.51.0

then tried starting gearmand and now I get a different error:


/usr/local/sbin/gearmand: symbol lookup error: /usr/local/sbin/gearmand: undefined symbol: _ZN5boost15program_options19options_descriptionC1ERKSsjj

Kubes

unread,
Nov 8, 2012, 4:51:21 PM11/8/12
to gea...@googlegroups.com
Yes that worked for me.  booted a clean Amazon AMI 2012.09 (latest) and yum update then the other dependancues.

Work time with the AMI include repo and rpms.

Brian Aker

unread,
Nov 10, 2012, 2:54:12 AM11/10/12
to gea...@googlegroups.com
Hi,

So does Amazon have a bad AMI? If so has anyone reported this?

BTW thanks to the Amazon API issue at last count I now know of 39 companies that I never knew about who use Gearman on the Amazon cloud :)

Cheers,
-Brian
> --
>
>

Reply all
Reply to author
Forward
0 new messages