Installing Boost libraries to a custom directory in ~ (home)

一个人想着一个人 提交于 2020-07-09 13:58:12

问题


I'm trying to build the boost libraries

as i see at the manual from,

http://www.boost.org/doc/libs/1_62_0/more/getting_started/unix-variants.html#easy-build-and-install

As described at the manual, I'm running the command,

$ ./bootstrap.sh --prefix=path/to/installation/prefix

with --prefix=~/boost-libs, like this,

$ ./bootstrap.sh --prefix=~/boost-libs

so the libs to be placed in my home directory.

After that I'm running,

./b2 install

I'm also tried to run it like this,

./b2 install --prefix=~/boost-libs

But nothing to be placed at 'boost-libs' in my home folder.

  • The folder 'boost-libs' is exists in my home folder.

I also tried to run,

$ sudo ./bootstrap.sh

and then

$ sudo ./b2 install

so the installation will go to '/usr/local/lib', and it does work, but not succeeded to install to a custom directory.

Thanks


回答1:


As mentioned in the comments above,

Running it using $HOME instead of '~/' solved the problem,

./bootstrap.sh --prefix=$HOME/boost-libs

Thanks

For more details about $HOME and '~/' at that link,

Difference between $HOME and '~' (tilde)?



来源:https://stackoverflow.com/questions/48208047/installing-boost-libraries-to-a-custom-directory-in-home

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!