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

时间:2017-04-02 06:23:07

标签: boost

我正在尝试从Orcle Linux的源代码编译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库?

1 个答案:

答案 0 :(得分:1)

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

相关问题