|
I can understand that, maybe a nicer message would be possible? Then at least you can search for the correct terms to find this solution from that message.
diff --git a/SConstruct b/SConstruct
|
index 0e980fd..250d722 100644
|
--- a/SConstruct
|
+++ b/SConstruct
|
@@ -2231,6 +2231,8 @@ def doConfigure(myenv):
|
"C",
|
"SSL_version(NULL);",
|
autoadd=True):
|
+ if is_running_os('osx'):
|
+ print "Try addding scons options: LINKFLAGS=-L/usr/local/opt/openssl/lib CPPPATH=/usr/local/opt/openssl/include"
|
conf.env.ConfError("Couldn't find OpenSSL ssl.h header and library")
|
|
if not conf.CheckLibWithHeader(
|
@@ -2239,6 +2241,8 @@ def doConfigure(myenv):
|
"C",
|
"SSLeay_version(0);",
|
autoadd=True):
|
+ if is_running_os('osx'):
|
+ print "Try addding scons options: LINKFLAGS=-L/usr/local/opt/openssl/lib CPPPATH=/usr/local/opt/openssl/include"
|
conf.env.ConfError("Couldn't find OpenSSL crypto.h header and library")
|
|
def CheckLinkSSL(context):
|
Output:
> scons --config force --ssl mongod
|
scons: Reading SConscript files ...
|
scons version: 2.4.1
|
...
|
Checking for SSL_version(NULL) in C library ssl... no
|
Try addding scons options: LINKFLAGS=-L/usr/local/opt/openssl/lib CPPPATH=/usr/local/opt/openssl/include
|
Couldn't find OpenSSL ssl.h header and library
|
See /Users/scotthernandez/git/mongo/build/scons/config.log for details
|
The reason this is more of an issue now is that apple no longer includes openssl in osx/xcode – http://lists.apple.com/archives/macnetworkprog/2015/Jun/msg00025.html
|
|
I'd strongly prefer that we not do this. We previously had "support" for searching for macports and homebrew in the top level SConstruct and we intentionally stripped it out because it caused problems. You can install those systems to any path, and we don't want to hardcode awareness of these particular package management systems. The purpose exposing the LINKFLAGS and CPPPATH options was to make it easy to reference these sorts of package systems. If you find specifying these options as needed on your system on the command line inconvenient, you can add them to your mongo_custom_variables.py file and they will be automatically set.
|