<p>Libraries should be installed in <code>/usr/include</code>.</p>

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

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

CC BY-SA 3.0
2016-10-29T15:15:43.247Z
Thank you! it seems however that not everyone agrees (e.g. https://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
CC BY-SA 3.0
2016-10-29T15:58:10.297Z
This seems like something more suitable at unix stack exchange if we really wanna discuss where is best to install any arbitrary Libs.
rny
CC BY-SA 3.0
2016-10-29T12:22:44.457Z
2016-10-29T12:22:44.457Z
rny
<p>When installing <code>bitcoin-core</code>, <code>libbitcoin</code> or <code>libbitcoin-explorer</code> the build requires the C++ <code>boost</code> library. Is there any reason why I should prefer to install <code>boost</code> in the <code>/usr/</code> hierarchy rather than <code>/usr/local</code>. Or should I not attempt to link all my C++ projects to the same <code>boost</code> build anyway, and link to a seperate <code>boost</code> build (of a possibly different versions installed in different locations) for each project? </p>

<bitcoind><bitcoin-core><compiling>
Should boost be installed in /usr/ or /usr/local/ for bitcoin-core?
Sven Williamson
# Should boost be installed in /usr/ or /usr/local/ for bitcoin-core?

(Asked by: username_0 on 2016-10-28)

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?

**Tags:** bitcoind, bitcoin-core, compiling


---

## 1 answers

### Answer by username_1 on 2016-10-29. Score: 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.

> **Comments:**
> **username_0**: Thank you! it seems however that not everyone agrees (e.g. https://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 :)  
> **username_1**: This seems like something more suitable at unix stack exchange if we really wanna discuss where is best to install any arbitrary Libs.  

---

