Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
None
-
Linux, on cluster server.
Description
- Install mongodb with legacy branch.
I follow [install page](http://mongocxx.org/legacy-v1/installation/)
I load python2 and boost/1.69.0
And then I run `scons install`
- the error was appeared as below.
`scons: Reading SConscript files ...
scons version: 3.0.5
python version: 2 7 10 'final' 0
Checking whether the C++ compiler works... (cached) yes
Checking whether the C compiler works... (cached) yes
Checking if C++ compiler "g++" is GCC... (cached) yes
Checking if C compiler "gcc" is GCC... (cached) yes
Checking if C compiler supports -Wno-unused-local-typedefs... (cached) no
Checking if C compiler supports -Wno-unused-function... (cached) yes
Checking if C compiler supports -Wno-unused-private-field... (cached) no
Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) no
Checking if C compiler supports -Wno-unused-const-variable... (cached) no
Checking if C compiler supports -Wno-missing-braces... (cached) yes
Checking if we are using libstdc++... (cached) yes
Checking for libstdc++ 4.6.0 or better... (cached) no
Checking if we are on a POSIX system... (cached) yes
Checking if the POSIX monotonic clock is supported... (cached) yes
Checking for __thread... (cached) yes
Checking for gcc __atomic builtins... (cached) no
Checking for useable __sync builtins... (cached) yes
Checking for C++ header file boost/version.hpp... (cached) yes
Checking for C++ library boost_regex-mt... (cached) yes
Checking for C++ library boost_thread-mt... (cached) yes
Checking for C++ library boost_system-mt... (cached) yes
Checking for C header file unistd.h... (cached) yes
Checking for C library rt... (cached) yes
Checking whether timegm is declared... (cached) yes
Checking whether strnlen is declared... (cached) yes
Checking for C library curl... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
/cluster/software/VERSIONS/python2-2.7.10/bin/python src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err build/linux2/normal/mongo/base/error_codes.h build/linux2/normal/mongo/base/error_codes.cpp
/cluster/software/VERSIONS/python2-2.7.10/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
scons: *** [build/linux2/normal/mongo/base/error_codes.h] Error 127
scons: building terminated because of errors.
`
- I checked `libpython2.7.so.1.0` is in `/cluster/software/VERSIONS/python2-2.7.10/lib`
Then, I change the command to `scons --extralib=/cluster/software/VERSIONS/python2-2.7.10 install`,
and scons cannot link to boost.
`scons: Reading SConscript files ...
scons version: 3.0.5
python version: 2 7 10 'final' 0
Checking whether the C++ compiler works... (cached) yes
Checking whether the C compiler works... (cached) yes
Checking if C++ compiler "g++" is GCC... (cached) yes
Checking if C compiler "gcc" is GCC... (cached) yes
Checking if C compiler supports -Wno-unused-local-typedefs... (cached) no
Checking if C compiler supports -Wno-unused-function... (cached) yes
Checking if C compiler supports -Wno-unused-private-field... (cached) no
Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) no
Checking if C compiler supports -Wno-unused-const-variable... (cached) no
Checking if C compiler supports -Wno-missing-braces... (cached) yes
Checking if we are using libstdc++... (cached) yes
Checking for libstdc++ 4.6.0 or better... (cached) no
Checking if we are on a POSIX system... (cached) yes
Checking if the POSIX monotonic clock is supported... (cached) yes
Checking for __thread... no
Checking for gcc __atomic builtins... no
Checking for useable __sync builtins... no
Checking for C++ header file boost/version.hpp... yes
Checking for C++ library boost_regex-mt... no
Checking for C++ library boost_regex... no
can't find boost
See /cluster/home/cnphuong/.local/opt/mongo-client/build/scons/config.log for details
`
- Can you give me some suggestions with this situation?
Boost library is in `/cluster/software/VERSIONS/boost/1.69.0`