[SERVER-14811] Attempting scons install on centos installation results in error abour missing candle.exe Created: 06/Aug/14  Updated: 09/Jul/16  Resolved: 08/Aug/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: saro marcarian Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

download source
extract source
cd to source dir
sudo scons all
sudo scons install

Participants:

 Description   

Trying to build / install mongo on a Centos vm.

"\bin\candle.exe" -wx -dMongoDBMajorVersion=2.6 -dMongoDBVersion=2.6.3 -dLicenseSource=distsrc -dEnterpriseBase=src\mongo\db\modules\enterprise\ -dBinarySource=build/linux2/normal\mongo -dMergeModulesBasePath="" -dEdition=Standard -d"ProductId=*" -dUpgradeCode=6A44D061-6FA9-438B-8D25-4AF1BBAC61D7 -dClientSource=build/linux2/normal\client_build -dClientHeaderSource=/usr/local\include\mongo -dConfiguration=Release -dOutDir=build/linux2/normal\msi -dPlatform=x64 -dFlavor=Legacy -dProjectDir=buildscripts\packaging\msi
-dProjectName=MongoDB -dTargetDir=build/linux2/normal\msi -dTargetExt=.msi -dTargetFileName=mongodb-linux-x86_64-2.6.3.tgz -dSaslSource=c:\sasl\bin -dSnmpSource=c:\snmp\bin -dSslSource=c:\openssl\bin -out build/linux2/normal\msi
-arch x64 -ext "\bin\WixUIExtension.dll" src/mongo/installer/msi/wxs/BinaryFragment.wxs src/mongo/installer/msi/wxs/FeatureFragment.wxs src/mongo/installer/msi/wxs/LicensingFragment.wxs src/mongo/installer/msi/wxs/Installer_64.wxs
sh: \bin\candle.exe: command not found
scons: *** [build/linux2/normal/msi/BinaryFragment.wixobj] Error 127
scons: building terminated because of errors.

src downloaded 20140806 from https://fastdl.mongodb.org/src/mongodb-src-r2.6.3.tar.gz



 Comments   
Comment by Eric Milkie [ 08/Aug/14 ]

"scons install" is like "make install", it just copies files. The yum package installer gives you a bit more, so that you can start the service with the "service" command.

Comment by saro marcarian [ 08/Aug/14 ]

Build was successful after moving source dir. Thanks! Ticket can be closed.

But I do have a question... Is scons install expected to setup the daemon / service?

Comment by saro marcarian [ 07/Aug/14 ]

Yes - /usr/local/src. Will try moving source someplace else.

Comment by Eric Milkie [ 07/Aug/14 ]

There is a small build dependency issue with our SConstruct that causes this problem if your install directory is a parent of the directory where you are attempting to build. Essentially, it causes scons to build all targets it can find in all subdirectories, even ones that are only intended for Windows.
Since the default install directory on your platform is /usr/local, did you happen to extract the source into a subdirectory of that path?

Generated at Thu Feb 08 03:36:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.