cannot build mongodb 1.7.0 from source

27 views
Skip to first unread message

MarkCallaghan

unread,
Sep 14, 2010, 10:55:47 AM9/14/10
to mongodb-user
I am unable to build 1.7.0 from source. My system is:
* CentOS 5.2
* uname -a -> Linux X.com 2.6.20-21_fbk41_r62192 #1 SMP Mon Feb 1
09:57:13 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
* gcc 4.1.2 (I think this is standard on centos5)
* 64-bit x86
* scons 0.98.1 installed via yum

"scons ." fails for me
>>>
scons .
scons: Reading SConscript files ...
scons version: 0.98.1
python version: 2 6 0 'final' 0
/usr/lib/scons/SCons/Platform/posix.py:38: DeprecationWarning: The
popen2 module is deprecated. Use the subprocess module.
import popen2
/usr/lib/scons/SCons/Tool/msvs.py:37: DeprecationWarning: the md5
module is deprecated; use hashlib instead
import md5
Checking for C library stdc++...
no
can't find stdc++ library which is needed
>>>

The output from config.log shows the problem. Many arguments on the
failing gcc command line have a space between each letter. This looks
like Python code that used ' '.join(x) for the string x when it was
expecting x to be a list. But I am not sure where this is going wrong
within scons.

>>>
cat config.log.b
file /s/bld/mongo170/SConstruct,line 864:
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C library stdc++...
.sconf_temp/conftest_0.c <-
|
|
|
|int
|main() {
|
|return 0;
|}
|
gcc -o .sconf_temp/conftest_0.o -c -fPIC -fno-strict-aliasing -ggdb -
pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -
Werror -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -I. .sconf_temp/conftest_0.c
gcc -o .sconf_temp/conftest_0 " " - f P I C " " - p t h r e a d " " -
r d y n a m i c .sconf_temp/conftest_0.o -L/usr/lib64 -L/lib64 -
lpthread -lstdc++
gcc: : No such file or directory
gcc: f: No such file or directory
gcc: P: No such file or directory
gcc: I: No such file or directory
gcc: C: No such file or directory
gcc: : No such file or directory
gcc: p: No such file or directory
gcc: t: No such file or directory
gcc: h: No such file or directory
gcc: r: No such file or directory
gcc: e: No such file or directory
gcc: a: No such file or directory
gcc: d: No such file or directory
gcc: : No such file or directory
gcc: r: No such file or directory
gcc: d: No such file or directory
gcc: y: No such file or directory
gcc: n: No such file or directory
gcc: a: No such file or directory
gcc: m: No such file or directory
gcc: i: No such file or directory
gcc: c: No such file or directory
gcc: -E or -x required when input is from standard input
gcc: -E or -x required when input is from standard input
gcc: -E or -x required when input is from standard input
scons: Configure: no
>>>

Eliot Horowitz

unread,
Sep 14, 2010, 10:58:45 AM9/14/10
to mongod...@googlegroups.com
You need a new version of scosn (scons 1.2) is best.
Will see if we can make scons detect this.
Should be able to upgrade via easy_install

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

MARK CALLAGHAN

unread,
Sep 14, 2010, 11:26:42 AM9/14/10
to mongod...@googlegroups.com
That worked. I built js-1.7.0 from source and the build is in progress.

--
Mark Callaghan
mdca...@gmail.com

Reply all
Reply to author
Forward
0 new messages