2017-04-02 63 views
0

我想从Orcle Linux的源代码编译boost库。然而,第一个命令./bootstrap.sh失败,出现错误在Oracle Linux中编译从源代码升压失败

### 
### 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

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