Can't locate boost headers in include search patch

55 views
Skip to first unread message

Eric Beckmann

unread,
Jul 23, 2015, 6:35:52 AM7/23/15
to mongodb-user
Hello,

I'm attempting to compile the MongoDB C++ driver on MacOSX 10.9.5.    I'm using the legacy version from here: https://github.com/mongodb/mongo-cxx-driver.  I'm attempting to use scons to build it, however I get the following output

scons: Reading SConscript files ...

scons version: 2.3.5

python version: 2 7 5 'final' 0

Checking whether the C++ compiler works... yes

Checking whether the C compiler works... yes

Checking if C++ compiler "g++" is GCC... no

Checking if C++ compiler "g++" is clang... yes

Checking if C compiler "gcc" is clang... yes

Checking if C compiler supports -Wno-unused-local-typedefs... no

Checking if C compiler supports -Wno-unused-function... yes

Checking if C compiler supports -Wno-unused-private-field... yes

Checking if C compiler supports -Wno-deprecated-declarations... yes

Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... yes

Checking if C compiler supports -Wno-unused-const-variable... yes

Checking if C compiler supports -Wno-missing-braces... yes

Checking if implicit boost::shared_ptr null conversion is supported... no

Checking if we are using libstdc++... no

Checking if we are on a POSIX system... yes

Checking if the POSIX monotonic clock is supported... no

Checking for __thread... yes

Checking for gcc __atomic builtins... yes

Checking for C++ header file boost/version.hpp... no

Could not find boost headers in include search path


After this it exits.  However I already installed boost using Homebrew.  Why is it still unable to find the boost headers?


I'd appreciate any help with this issue.


Thanks,


Eric

Andrew Morrow

unread,
Jul 23, 2015, 3:38:31 PM7/23/15
to mongod...@googlegroups.com

Hi Eric -

By default, SCons does not include /usr/local on the header or library search path. Can you see if adding --extrapath=/usr/local (the standard brew install path, please change as appropriate if you have brew elsewhere) to your SCons invocation helps?

Thanks,
Andrew


--
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/d9c9f8db-16d6-4582-af0d-4b118b6579be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages