/usr/bin/ld: /usr/local/lib/liblapack.a(dgeev.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/liblapack.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [igraph.so] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/share/work/biosoft/R/R-v3.4.0/lib64/R/library/igraph’
The downloaded source packages are in
‘/tmp/Rtmply12uv/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
错误解决,临时不让他加载这些模块:
mv /usr/local/lib/liblapack.a /usr/local/lib/liblapack.a.bak
mv /usr/local/lib/libblas.a /usr/local/lib/libblas.a.bak
然后再安装: install.packages("igraph",repos = "http://mirrors.tuna.tsinghua.edu.cn/CRAN")
Warning message:
In install.packages("igraph", repos = "http://mirrors.tuna.tsinghua.edu.cn/CRAN/") :
installation of package ‘igraph’ had non-zero exit status
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!