2014-04-07 30 views
3

在Ubuntu 12.04上安裝rpy2時出現錯誤的原因是什麼?rpy2,R和Ubuntu 12.04 - 子字符串無效-fopenmp

easy_install rpy2 
Searching for rpy2 
Reading http://pypi.python.org/simple/rpy2/ 
Best match: rpy2 2.3.9 
Downloading https://pypi.python.org/packages/source/r/rpy2/rpy2-2.3.9.tar.gz#md5=86851a56f637e7b87709eb2b91dc5075 
Processing rpy2-2.3.9.tar.gz 
Running rpy2-2.3.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DFDRi5/rpy2-2.3.9/egg-dist-tmp-7nyGO8 
"/usr/lib/R/bin/R" CMD config --ldflags 
Invalid substring 
-fopenmp 
in string 
-Wl,--export-dynamic -fopenmp -L/usr/lib/R/lib -lR -lpcre -llzma -lbz2 -lrt -ldl -lm 
error: Setup script exited with Problem while running `"/usr/lib/R/bin/R" CMD config --ldflags` 

回答