C++ Can';t将boost安装到其他目录

C++ Can';t将boost安装到其他目录,c++,linux,boost,build,C++,Linux,Boost,Build,我只想使用Boost库的文件系统。我想要指定目录中的头文件和二进制文件 我所做的是: 下载boost(文件类型:tar.gz)并解压缩到~/boost\u 1\u 55\u 0 按如下方式运行bootstrap.sh:/bootstrap.sh--with libraries=filesystem--libdir=~/boost155/lib--includedir=~/boost155/header/ bootstrap生成的project-config.jam的详细信息: # Boost.B

我只想使用Boost库的文件系统。我想要指定目录中的头文件和二进制文件

我所做的是:

下载boost(文件类型:tar.gz)并解压缩到~/boost\u 1\u 55\u 0

按如下方式运行bootstrap.sh:
/bootstrap.sh--with libraries=filesystem--libdir=~/boost155/lib--includedir=~/boost155/header/

bootstrap生成的project-config.jam的详细信息:

# Boost.Build Configuration
# Automatically generated by bootstrap.sh

import option ;
import feature ;

# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
# file.
if ! gcc in [ feature.values <toolset> ]
{
    using gcc ; 
}

project : default-build <toolset>gcc ;

# List of --with-<library> and --without-<library>
# options. If left empty, all libraries will be built.
# Options specified on the command line completely
# override this variable.
libraries =  --with-filesystem ;

# These settings are equivivalent to corresponding command-line
# options.
option.set prefix : /usr/local ;
option.set exec-prefix : /usr/local ;
option.set libdir : ~/boost155/lib ;
option.set includedir : ~/boost155/header/ ;

# Stop on first error
option.set keep-going : false ;
如您所见,b2不在我想要的目录中安装库和头。我也检查了文件夹,它是空白的

我想问题出在一个链接上。jam丢失了。但是搜索互联网对我来说什么都没有

如果您有任何想法,我们将不胜感激:)

您必须跑步

./b2 install
而不是简单地

./b2

(via)

手动复制头文件和二进制文件可以,但我不知道为什么
b2
不将这些文件复制到指定的文件夹中?
./b2