Update build-unix.md#4056
Conversation
./configure LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib/ CPPFLAGS=-I/usr/local/BerkeleyDB.4.8/include/
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/911937b7dea3315a304e83a543d136d930d19b21 for binaries and test log. |
|
/bitcoin-qt: error while loading shared libraries: libdb_cxx-4.8.so: cannot open shared object file: No such file or directory I have received this error message from time to time. |
|
@Altoidnerd That means you don't have db_cxx 4.8 installed. That has nothing to do with this PR. |
|
@Altoidnerd if you build berkelydb from source, it's recommended to only build the static libraries. Otherwise you have to fumble around with LD_LIBRARY_PATH to make sure it can find the .so at runtime. |
There was a problem hiding this comment.
For clarity I suggest putting double quotes around the options, i.e.
LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib/" CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include/"
Also: does redefining those options lose any built-in options like optimization flags? (I know that redefining CXXFLAGS does...) I'd still prefer to have specific settings to specify the BDB paths (see #3921).
|
@sipa If this PR is about conflicting bdb versions...well prior to #4063, I may have accumulated a few as there is even more than one 4.8. I'm not entirely sure though. |
|
Closing in favor of #4114 |
./configure LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib/ CPPFLAGS=-I/usr/local/BerkeleyDB.4.8/include/