scons: *** [build/install/bin/bsondump] Source `src/mongo-tools/bsondump' not found, needed by target `build/install/bin/bsondump'.

183 views
Skip to first unread message

Saifi Khan

unread,
Nov 6, 2014, 1:19:41 AM11/6/14
to mongod...@googlegroups.com
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.

Ernie Hershey

unread,
Nov 6, 2014, 11:58:42 AM11/6/14
to mongodb-user
Hi Saifi,

If you remove the mongo-tools repo directory from under src/, and create a new mongo-tools directory there containing only the tools binaries, it should work better. 

The 'install' target is looking for the tools binaries under src/mongo-tools/ but seeing the package directories from the base level of the mongo-tools repo instead.

Ernie

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/f8dc73db-1c82-424a-9168-a78e2a824a56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages