3

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?

1 Answer 1

2

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.

2
  • 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 :) Oct 29, 2016 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.
    – rny
    Oct 29, 2016 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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