...
Downloaded the tarball for 3.2.8 from https://github.com/mongodb/mongo/releases to build it on Debian 8. https://jira.mongodb.org/browse/SERVER-21791 was no help No version.json. No MONGO_VERSION set. Trying to do MSI (Windows) stuff on Linux? Error when trying to build: IndexError: list index out of range: File "mongo-r3.2.8/SConstruct", line 2650: env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False) File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541: return _SConscript(self.fs, *files, **subst_kw) File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250: exec _file_ in call_stack[-1].globals File "mongo-r3.2.8/src/SConscript", line 14: ] + module_sconscripts File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541: return _SConscript(self.fs, *files, **subst_kw) File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250: exec _file_ in call_stack[-1].globals File "mongo-r3.2.8/src/mongo/SConscript", line 40: 'util', File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541: return _SConscript(self.fs, *files, **subst_kw) File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250: exec _file_ in call_stack[-1].globals File "mongo-r3.2.8/src/mongo/installer/SConscript", line 7: 'msi', File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 541: return _SConscript(self.fs, *files, **subst_kw) File "/usr/local/lib/scons-2.5.0/SCons/Script/SConscript.py", line 250: exec _file_ in call_stack[-1].globals File "mongo-r3.2.8/src/mongo/installer/msi/SConscript", line 89: major_version = "%s.%s" % (mv[0], mv[1])
ramon.fernandez commented on Wed, 20 Jul 2016 12:19:21 +0000: Thanks for the update Patterner. To answer your questions: SERVER-21317 describes the workaround for github tarballs: you can add a version.json file or with version and githash information or use site_scons. However I'd recommend you use the tarballs provided via our downloads page so it's easier to track which bits are you using if you run into a bug The MSI stuff is a red herring: it is triggered by the bug described in SERVER-21317 I'm going to close this ticket as a duplicate of SERVER-21317, feel free to watch that ticket for updates. Thanks, Ramón. patterner commented on Wed, 20 Jul 2016 10:20:51 +0000: The tarball from https://fastdl.mongodb.org/src/mongodb-src-r3.2.8.tar.gz doesn't have that problem. My expectations for 3.2.9 (or 3.3.*): no workarounds for github release archives not trying to build MSI stuff under Linux (new bug for that?) ramon.fernandez commented on Tue, 19 Jul 2016 20:40:30 +0000: I think SERVER-21317 is the ticket you're looking for – can you please try the workaround suggested there and report back? I think that should help you move forward. The alternative is to download our tarball instead of the one provided by github. Thanks, Ramón.
1. extract tar ball 2. go to mongo-r3.2.8 3. type "scons"