Problems compiling from source on Centos

102 views
Skip to first unread message

aemadrid

unread,
Feb 3, 2009, 3:37:34 PM2/3/09
to mongodb-user
Here is the gist with more information:

http://gist.github.com/57728

Any ideas?

Thanks in advance,


Adrian Madrid

Eliot

unread,
Feb 3, 2009, 4:58:26 PM2/3/09
to mongodb-user
To build everything on a 64-bit machine you need boost 32 and 64 bit.
However you don't need to build everything.
From that message, it seems like the db should build just fine.

so do scons -j2 mongod

Adrian Madrid

unread,
Feb 3, 2009, 5:16:02 PM2/3/09
to mongod...@googlegroups.com
Still having same problems to build:


AEM

Eliot

unread,
Feb 3, 2009, 5:24:35 PM2/3/09
to mongodb-user
Oops.
Try doing a git pull and try again.

Adrian Madrid

unread,
Feb 3, 2009, 10:16:58 PM2/3/09
to mongod...@googlegroups.com
Thanks! That did it. Are the shell and other tools static or dynamic?

Adrian Esteban Madrid
Lead Developer, Prefab Markets
http://www.prefabmarkets.com

geir

unread,
Feb 5, 2009, 6:00:45 PM2/5/09
to mongodb-user
Also - the 64-bit linux build should be fixed, and you *should* be
able to run it w/o having to have the 32-bit boost libs around.

Can you give it a try?

On Feb 3, 10:16 pm, Adrian Madrid <aemad...@gmail.com> wrote:
> Thanks! That did it. Are the shell and other tools static or dynamic?
> Adrian Esteban Madrid
> Lead Developer, Prefab Marketshttp://www.prefabmarkets.com

Adrian Madrid

unread,
Feb 6, 2009, 12:46:20 PM2/6/09
to mongod...@googlegroups.com
Bad news, sorry. It won't compile unless I try to compile just mongod. Although if I DL the binaries they all work with the exception of the shell. Here's the gist for all this.


Adrian Esteban Madrid
Lead Developer, Prefab Markets
http://www.prefabmarkets.com


Geir Magnusson

unread,
Feb 6, 2009, 1:30:32 PM2/6/09
to mongod...@googlegroups.com
1) I'm not surprised you can't build mongo the shell on a 64-bit box -
it requires a little extra work.

2) I suspect that readline isn't installed for the shell - could you
please type

$ ldd bin/mongo

and provide the output?

geir

Adrian Madrid

unread,
Feb 6, 2009, 2:06:43 PM2/6/09
to mongod...@googlegroups.com
Here goes the output:

/opt/10gen/mongo-dist: ldd bin/mongo
libpthread.so.0 => /lib/libpthread.so.0 (0xb7f53000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e6a000)
libreadline.so.5 => /usr/lib/libreadline.so.5 (0xb7e36000)
libm.so.6 => /lib/libm.so.6 (0xb7e0f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e03000)
libc.so.6 => /lib/libc.so.6 (0xb7cc0000)
/lib/ld-linux.so.2 (0xb7f7a000)

Adrian Esteban Madrid
Lead Developer, Prefab Markets
http://www.prefabmarkets.com


Geir Magnusson Jr.

unread,
Feb 6, 2009, 4:22:43 PM2/6/09
to mongod...@googlegroups.com
any idea what version of readline is installed?  It needs a 32-bit version, which I assume that is?

Adrian Madrid

unread,
Feb 11, 2009, 7:05:14 PM2/11/09
to mongod...@googlegroups.com
This is a 64-bit OS and here are the versions installed:

ls -alh /usr/lib/libreadline.*
-rw-r--r-- 1 root root 294K Jan 9 2007 /usr/lib/libreadline.a
lrwxrwxrwx 1 root root 16 Feb 11 17:01 /usr/lib/libreadline.so ->
libreadline.so.5
lrwxrwxrwx 1 root root 18 Feb 11 17:01 /usr/lib/libreadline.so.5 ->
libreadline.so.5.1
-rwxr-xr-x 1 root root 204K Jan 9 2007 /usr/lib/libreadline.so.5.1

uname -a
Linux a.b.c 2.6.18-92.1.13.el5.028stab059.3 #1 SMP Wed Oct 15 13:33:44
MSD 2008 x86_64 x86_64 x86_64 GNU/Linux

I have even tried compiling readline 5.2 from source and changing the
symlink to the local lib but then it complains about a different ELF
class.

Any ideas?


Adrian Esteban Madrid
Lead Developer, Prefab Markets
http://www.prefabmarkets.com



Eliot

unread,
Feb 11, 2009, 7:25:08 PM2/11/09
to mongodb-user
I think centos has a different structure then fedora.
On fedora 64bit, /usr/lib in 32-bit, on centos its 64-bit.
I’ll see if I can get a version fully statically linked version up
tonight.

The actual db process should work though. (mongod)


On Feb 11, 7:05 pm, Adrian Madrid <aemad...@gmail.com> wrote:
> This is a 64-bit OS and here are the versions installed:
>
> ls -alh /usr/lib/libreadline.*
> -rw-r--r-- 1 root root 294K Jan  9  2007 /usr/lib/libreadline.a
> lrwxrwxrwx 1 root root   16 Feb 11 17:01 /usr/lib/libreadline.so ->
> libreadline.so.5
> lrwxrwxrwx 1 root root   18 Feb 11 17:01 /usr/lib/libreadline.so.5 ->
> libreadline.so.5.1
> -rwxr-xr-x 1 root root 204K Jan  9  2007 /usr/lib/libreadline.so.5.1
>
> uname -a
> Linux a.b.c 2.6.18-92.1.13.el5.028stab059.3 #1 SMP Wed Oct 15 13:33:44
> MSD 2008 x86_64 x86_64 x86_64 GNU/Linux
>
> I have even tried compiling readline 5.2 from source and changing the
> symlink to the local lib but then it complains about a different ELF
> class.
>
> Any ideas?
>
> Adrian Esteban Madrid
> Lead Developer, Prefab Marketshttp://www.prefabmarkets.com
>
> On Fri, Feb 6, 2009 at 14:22, Geir Magnusson Jr. <g...@pobox.com> wrote:
>
> > any idea what version of readline is installed?  It needs a 32-bit version,
> > which I assume that is?
>
> > On Feb 6, 2009, at 2:06 PM, Adrian Madrid wrote:
>
> > Here goes the output:
> > /opt/10gen/mongo-dist: ldd bin/mongo
> > libpthread.so.0 => /lib/libpthread.so.0 (0xb7f53000)
> > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e6a000)
> > libreadline.so.5 => /usr/lib/libreadline.so.5 (0xb7e36000)
> > libm.so.6 => /lib/libm.so.6 (0xb7e0f000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e03000)
> > libc.so.6 => /lib/libc.so.6 (0xb7cc0000)
> > /lib/ld-linux.so.2 (0xb7f7a000)
> > Adrian Esteban Madrid
> > Lead Developer, Prefab Markets
> >http://www.prefabmarkets.com
>
> > On Fri, Feb 6, 2009 at 11:30, Geir Magnusson <g...@10gen.com> wrote:
>
> >> 1) I'm not surprised you can't build mongo the shell on a 64-bit box -
> >> it requires a little extra work.
>
> >> 2) I suspect that readline isn't installed for the shell - could you
> >> please type
>
> >>   $ ldd bin/mongo
>
> >> and provide the output?
>
> >> geir
>
> >> On Feb 6, 2009, at 12:46 PM, Adrian Madrid wrote:
>
> >> > Bad news, sorry. It won't compile unless I try to compile just
> >> > mongod. Although if I DL the binaries they all work with the
> >> > exception of the shell. Here's the gist for all this.
>
> >> >http://gist.github.com/59515
>
> >> > Adrian Esteban Madrid
> >> > Lead Developer, Prefab Markets
> >> >http://www.prefabmarkets.com
>

Eliot

unread,
Feb 11, 2009, 10:30:17 PM2/11/09
to mongodb-user
Give this a shot:
http://downloads.mongodb.org/linux/mongodb-linux-x86_64-latest.tgz
this is the same, with statically linked readline

Adrian Madrid

unread,
Feb 12, 2009, 11:43:38 AM2/12/09
to mongod...@googlegroups.com
Thanks! That finally did it.

Adrian Esteban Madrid
Lead Developer, Prefab Markets
http://www.prefabmarkets.com



Reply all
Reply to author
Forward
0 new messages