Linux Boost 安装在我的 Ubuntu 上的哪个位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18842045/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Boost is installed where on my Ubuntu?
提问by user1343318
I download Boost 1.54 tar from Boost website and then followed the instructions as detailed here [1].
我从 Boost 网站下载 Boost 1.54 tar,然后按照此处 [1] 中的详细说明进行操作。
In particular, I wanted to install my boost library in the folder
特别是,我想在文件夹中安装我的 boost 库
$HOME/BOOST
using this:
使用这个:
$ ./bootstrap.sh --prefix=$HOME/BOOST
But after the installation, this folder is still empty. Why is that?
但是安装后,这个文件夹还是空的。这是为什么?
P.S.: Boost installation at the end said:
PS:Boost安装最后说:
common.copy stage/lib/libboost_wave.a
...failed updating 62 targets...
...skipped 18 targets...
...updated 1004 targets...
[1] http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html
[1] http://www.boost.org/doc/libs/1_54_0/more/getting_started/unix-variants.html
回答by AnkitSablok
If you use the following command:
如果使用以下命令:
sudo apt-get install libboost-all-dev
sudo apt-get install libboost-all-dev
to install the boost library on your Ubuntu distribution, then you can find the location using this command
在你的 Ubuntu 发行版上安装 boost 库,然后你可以使用这个命令找到位置
whereis boost
.
whereis boost
.
Typically it's stored in the location /usr/include/boost
.
通常它存储在 location 中/usr/include/boost
。
回答by Patrick Chu
The boost library files are in /usr/lib/x86_64-linux-gnu. You'll see a whole bunch of other libraries there as well.
boost 库文件位于 /usr/lib/x86_64-linux-gnu 中。您还会在那里看到一大堆其他库。