You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Andrew Farley <an...@neonsurge.com> on 2009/03/19 12:01:45 UTC

Thrift on CentOS 5.2? And as clean as possible

Hey guys,

I've been wrestling with getting thrift installed on a minimal install  
of CentOS 5.2 64-bit.  With the default boost package from the Cent  
repo it provides 1.33.1, the minimum requirements for thrift but the  
thrift ./configure script still complains about it not being valid.

I went down this route once before with another CentOS virtual  
machine, ended up having to manually compile and upgrade glib to  
install the latest boost, which then broke a bunch of other things  
which I started trying to recompile, and ended up failing miserably.   
I scrapped that VM and am starting over.

So, anyone have instructions/advice for getting it compiled/working on  
CentOS 5.2?

Or, instead of continuing to wrestle with compiling thrift, does  
anyone have or know where I can grab a thrift CentOS 5.2/RHEL4 RPM?   
I'm thus far unable to find it in RPM form and I have to keep this  
install as clean as possible because I will be replicating it via  
puppet to 30+ machines and soon thereafter, many, many more.  So, RPMs  
will be simple, recompiling a ton of packages and/or making my own  
RPMs will not be as easy/simple.

Thanks,

Andrew


Re: Thrift on CentOS 5.2? And as clean as possible

Posted by David Reiss <dr...@facebook.com>.
Did you try installing the boost-devel package?  I would take a look
at config.log after configure fails to try to determine what the
problem is.  If you can't make sense of it, email it in, and I'll
have a look.

--David

Andrew Farley wrote:
> Hey guys,
> 
> I've been wrestling with getting thrift installed on a minimal install  
> of CentOS 5.2 64-bit.  With the default boost package from the Cent  
> repo it provides 1.33.1, the minimum requirements for thrift but the  
> thrift ./configure script still complains about it not being valid.
> 
> I went down this route once before with another CentOS virtual  
> machine, ended up having to manually compile and upgrade glib to  
> install the latest boost, which then broke a bunch of other things  
> which I started trying to recompile, and ended up failing miserably.   
> I scrapped that VM and am starting over.
> 
> So, anyone have instructions/advice for getting it compiled/working on  
> CentOS 5.2?
> 
> Or, instead of continuing to wrestle with compiling thrift, does  
> anyone have or know where I can grab a thrift CentOS 5.2/RHEL4 RPM?   
> I'm thus far unable to find it in RPM form and I have to keep this  
> install as clean as possible because I will be replicating it via  
> puppet to 30+ machines and soon thereafter, many, many more.  So, RPMs  
> will be simple, recompiling a ton of packages and/or making my own  
> RPMs will not be as easy/simple.
> 
> Thanks,
> 
> Andrew
> 

Re: Thrift on CentOS 5.2? And as clean as possible

Posted by David Reiss <dr...@facebook.com>.
> I was missing the gcc-c++, everything else I had installed already.   
> Shouldn't the makefile intelligently detect and report this?
Yes.  There is an open bug for this.

> I also saw an error on line 20056 and 20057 because MONO was  
> undeclared.  I commented this out and now have thrift (and scribe)  
> working properly on Cent.
You can avoid this by installing pkg-config or using an instant release
(or normal release) tarball.

--David

Re: Thrift on CentOS 5.2? And as clean as possible

Posted by Andrew Farley <an...@neonsurge.com>.
Thanks for the reply Michael,

I was missing the gcc-c++, everything else I had installed already.   
Shouldn't the makefile intelligently detect and report this?

So with your below help it goes farther, but then during the make it  
reports it's missing the command yacc (shouldn't the makefile check  
and report this also?).  So, I responded by installing byacc, flex,  
and bison since I saw them all in the configure script.

I also saw an error on line 20056 and 20057 because MONO was  
undeclared.  I commented this out and now have thrift (and scribe)  
working properly on Cent.

Hopefully this may help others that build it on 64-bit Cent.  Thanks  
for the help!

Andrew

On Mar 19, 2009, at 12:01 PM, Michael Andrews wrote:

> I got thrift to compile for CentOS  5.2 32-bit- should be the same  
> as the 64-bit.
>
> # For Autoconf / GCC toolchain
> $ sudo yum install gcc-c++ automake libtool
> # For boost 1.33.1
> $ sudo yum install boost boost-devel
> # For python bindings
> $ sudo yum install python-devel
> # For perl bindings
> $ sudo yum install perl-Bit-Vector perl-Class-Accessor
>
> Autoconf gives some warnings but they do not prevent thrift from  
> compiling (although I did not try using mono bindings):
>
> $ cd ./src/thrift-git
> $ ./bootstrap.sh
> configure.ac:31: error: possibly undefined macro: AC_PROG_MKDIR_P
>      If this token and others are legitimate, please use  
> m4_pattern_allow.
>      See the Autoconf documentation.
> configure.ac:108: error: possibly undefined macro: AC_TYPE_INT16_T
> ....
>
> $ ./configure --without-csharp
> $ make
>
> Michael
>
> ________________________________
> From: Andrew Farley <an...@neonsurge.com>
> Reply-To: <th...@incubator.apache.org>
> Date: Thu, 19 Mar 2009 04:01:45 -0700
> To: <th...@incubator.apache.org>
> Subject: Thrift on CentOS 5.2?  And as clean as possible
>
> Hey guys,
>
> I've been wrestling with getting thrift installed on a minimal install
> of CentOS 5.2 64-bit.  With the default boost package from the Cent
> repo it provides 1.33.1, the minimum requirements for thrift but the
> thrift ./configure script still complains about it not being valid.
>
> I went down this route once before with another CentOS virtual
> machine, ended up having to manually compile and upgrade glib to
> install the latest boost, which then broke a bunch of other things
> which I started trying to recompile, and ended up failing miserably.
> I scrapped that VM and am starting over.
>
> So, anyone have instructions/advice for getting it compiled/working on
> CentOS 5.2?
>
> Or, instead of continuing to wrestle with compiling thrift, does
> anyone have or know where I can grab a thrift CentOS 5.2/RHEL4 RPM?
> I'm thus far unable to find it in RPM form and I have to keep this
> install as clean as possible because I will be replicating it via
> puppet to 30+ machines and soon thereafter, many, many more.  So, RPMs
> will be simple, recompiling a ton of packages and/or making my own
> RPMs will not be as easy/simple.
>
> Thanks,
>
> Andrew
>
>


Re: Thrift on CentOS 5.2? And as clean as possible

Posted by Michael Andrews <ma...@liveops.com>.
I got thrift to compile for CentOS  5.2 32-bit- should be the same as the 64-bit.

# For Autoconf / GCC toolchain
$ sudo yum install gcc-c++ automake libtool
# For boost 1.33.1
$ sudo yum install boost boost-devel
# For python bindings
$ sudo yum install python-devel
# For perl bindings
$ sudo yum install perl-Bit-Vector perl-Class-Accessor

Autoconf gives some warnings but they do not prevent thrift from compiling (although I did not try using mono bindings):

$ cd ./src/thrift-git
$ ./bootstrap.sh
configure.ac:31: error: possibly undefined macro: AC_PROG_MKDIR_P
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:108: error: possibly undefined macro: AC_TYPE_INT16_T
....

$ ./configure --without-csharp
$ make

Michael

________________________________
From: Andrew Farley <an...@neonsurge.com>
Reply-To: <th...@incubator.apache.org>
Date: Thu, 19 Mar 2009 04:01:45 -0700
To: <th...@incubator.apache.org>
Subject: Thrift on CentOS 5.2?  And as clean as possible

Hey guys,

I've been wrestling with getting thrift installed on a minimal install
of CentOS 5.2 64-bit.  With the default boost package from the Cent
repo it provides 1.33.1, the minimum requirements for thrift but the
thrift ./configure script still complains about it not being valid.

I went down this route once before with another CentOS virtual
machine, ended up having to manually compile and upgrade glib to
install the latest boost, which then broke a bunch of other things
which I started trying to recompile, and ended up failing miserably.
I scrapped that VM and am starting over.

So, anyone have instructions/advice for getting it compiled/working on
CentOS 5.2?

Or, instead of continuing to wrestle with compiling thrift, does
anyone have or know where I can grab a thrift CentOS 5.2/RHEL4 RPM?
I'm thus far unable to find it in RPM form and I have to keep this
install as clean as possible because I will be replicating it via
puppet to 30+ machines and soon thereafter, many, many more.  So, RPMs
will be simple, recompiling a ton of packages and/or making my own
RPMs will not be as easy/simple.

Thanks,

Andrew