【发布时间】:2013-09-17 05:40:23
【问题描述】:
我从 Boost 网站下载 Boost 1.54 tar,然后按照此处 [1] 中详细说明的说明进行操作。
我特别想在文件夹中安装我的 boost 库
$HOME/BOOST
使用这个:
$ ./bootstrap.sh --prefix=$HOME/BOOST
但是安装后,这个文件夹还是空的。这是为什么呢?
P.S.: 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
【问题讨论】:
-
你为什么不使用 apt-get install libboost libboost-dev?
-
我这样做了,但由于某种原因,我仍然无法准确定位头文件和 .so 文件的位置。
-
你试过运行
locate boost吗? -
可能是
/usr/local。这是从源代码安装大多数软件时的默认设置。 -
您根本不需要找到它。编译时,编译器使用
pkg-config libboost-dev --cflags,链接器使用pkg-config libboost --libs。