When installing bitcoin-core, libbitcoin or libbitcoin-explorer the build requires the C++ boost library. Is there any reason why I should prefer to install boost in the /usr/ hierarchy rather than /usr/local. Or should I not attempt to link all my C++ projects to the same boost build anyway, and link to a seperate boost build (of a possibly different versions installed in different locations) for each project?


Libraries should be installed in /usr/include.

For Boost, the path to it should be /usr/include/boost. That's where the linker would be looking for the libraries.

Otherwise, you may elect to install the libraries in some different directory and symlink it to /usr/include anyways.

| improve this answer | |
  • Thank you! it seems however that not everyone agrees (e.g. ubuntuforums.org/showthread.php?t=1528661). I now have the impression that unless your boost library is coming from a distribution package, it is advised to stick it in /usr/local/include/boost and /usr/local/lib rather than in the /usr/ hierarchy. I'll wait a bit before accepting this answer as the definite truth :) – Sven Williamson Oct 29 '16 at 15:15
  • This seems like something more suitable at unix stack exchange if we really wanna discuss where is best to install any arbitrary Libs. – renlord Oct 29 '16 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.