Hi:
Build mongodb successful from the github repo 'master'.
However, when i attempt to install, the following error is seen.
$sudo scons install
[?1034hscons: Reading SConscript files ...
scons version: 2.3.0
python version: 2 7 5 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking whether the C compiler works(cached) yes
.... ... snipped
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [build/install/bin/bsondump] Source `src/mongo-tools/bsondump' not found, needed by target `build/install/bin/bsondump'.
scons: building terminated because of errors.
So, what i did was to checkout mongo-tools in a peer directory to mongo directory.
i could build the tools successfully and installed them in /usr/local/bin
Next, in the src/ directory i did a symbolic link to ../../mongo-tools hoping that the path src/mongo-tools/bsondump will be found.
Now, i get the following error,
Checking if __malloc_hook is declared volatile... (cached) yes
TypeError: Directory /home/saifi/workarea/source/mongodb/mongo/src/mongo-tools/mongodump found where file expected.:
File "/home/saifi/workarea/source/mongodb/mongo/SConstruct", line 2224:
env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/home/saifi/workarea/source/mongodb/mongo/src/SConscript", line 14:
] + module_sconscripts
File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/home/saifi/workarea/source/mongodb/mongo/src/mongo/SConscript", line 1284:
installExternalBinary(env, "src/mongo-tools/" + t)
File "/home/saifi/workarea/source/mongodb/mongo/src/mongo/SConscript", line 1275:
name = env.File( "#/%s" % add_exe(name) )
File "/usr/lib/scons/SCons/Environment.py", line 2038:
return self.fs.File(s, *args, **kw)
File "/usr/lib/scons/SCons/Node/FS.py", line 1339:
return self._lookup(name, directory, File, create)
File "/usr/lib/scons/SCons/Node/FS.py", line 1318:
return root._lookup_abs(p, fsclass, create)
File "/usr/lib/scons/SCons/Node/FS.py", line 2215:
result.diskcheck_match()
File "/usr/lib/scons/SCons/Node/FS.py", line 2361:
"Directory %s found where file expected.")
File "/usr/lib/scons/SCons/Node/FS.py", line 384:
return self.func(*args, **kw)
File "/usr/lib/scons/SCons/Node/FS.py", line 405:
raise TypeError(errorfmt % node.abspath)
Can the folks who build mongo from source code share how to fix the build issue ?
Thanks in advance.
warm regards
Saifi.