在Oracle Linux中从源代码编译boost失败

在Oracle Linux中从源代码编译boost失败,boost,Boost,我正在尝试从源代码为OrcleLinux编译boost库。但是,第一个命令/bootstrap.sh失败并出现错误 ### ### Using 'gcc' toolset. ### rm -rf bootstrap mkdir bootstrap gcc -o bootstrap/jam0 command.c compile.c constants.c debug.c execcmd.c frames.c function.c glob.c hash.c hdrmacro.c headers.c

我正在尝试从源代码为OrcleLinux编译boost库。但是,第一个命令
/bootstrap.sh
失败并出现错误

###
### Using 'gcc' toolset.
###
rm -rf bootstrap
mkdir bootstrap
gcc -o bootstrap/jam0 command.c compile.c constants.c debug.c execcmd.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.
c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathsys.c regexp.c rules.c scan.c search.c subst.c 
timestamp.c variable.c modules.c strings.c filesys.c builtins.c class.c cwd.c native.c md5.c w32_getreg.c modules/set.c modules/pat
h.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execunix.c fileunix.c pathunix.c
./bootstrap/jam0 -f build.jam --toolset=gcc --toolset-root= clean
...found 1 target...
...updating 1 target...
[DELETE] clean
...updated 1 target...
./bootstrap/jam0 -f build.jam --toolset=gcc --toolset-root=
...found 158 targets...
...updating 2 targets...
[COMPILE] bin.linuxx86_64/b2
[COPY] bin.linuxx86_64/bjam
cp: preserving permissions for `bin.linuxx86_64/bjam': Operation not supported

        cp -Rpf "bin.linuxx86_64/b2" "bin.linuxx86_64/bjam"

...failed [COPY] bin.linuxx86_64/bjam...
...failed updating 1 target...
...updated 1 target...

我认为文件复制的位置可能有问题,所以
/bootstrap.sh--prefix=./
即使这样也不起作用。我可以试着删除-p,但我想这是有原因的。可能是什么错误?另外,有没有办法直接下载最新的针对Oracle Linux的boost库?

最后从tools/build/src/engine/build.jam子文件夹中的build.jam文件中删除-p。工作正常,没有错误。我仍然想知道-p的原因

除了Ubuntu,我遇到了这个问题。你能更具体地说明你删除了哪个-p吗?有很多。是build.jam第986行的cp命令中的“p”吗?最好是为什么?啊,已经很久了,所以我不记得了。但这是一个cp-R'p'f“bin.linuxx86_64/b2”“bin.linuxx86_64/bjam”