R包安装错误:重定位0具有无效的符号索引11

时间:2017-08-24 11:52:16

标签: c++ r linux gcc

我正在尝试通过rstudio安装一个名为'quantreg'和'igraph'的R包,但显示错误:

  

这是Rstudio控制台显示的内容

    gcc -c -std=gnu99 --enable-shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o quantreg.so akj.o boot.o bound.o boundc.o brute.o chlfct.o cholesky.o combos.o crq.o crqfnb.o dsel05.o etime.o extract.o idmin.o init.o iswap.o kuantile.o mcmb.o penalty.o powell.o rls.o rq0.o rq1.o rqbr.o rqfn.o rqfnb.o rqfnc.o rqs.o sparskit2.o srqfn.o srqfnc.o srtpai.o -llapack -lblas -lgfortran -lm -lquadmath -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
gcc: warning: akj.o: linker input file unused because linking not done
gcc: warning: boot.o: linker input file unused because linking not done
gcc: warning: bound.o: linker input file unused because linking not done
gcc: warning: boundc.o: linker input file unused because linking not done
gcc: warning: brute.o: linker input file unused because linking not done
gcc: warning: chlfct.o: linker input file unused because linking not done
gcc: warning: cholesky.o: linker input file unused because linking not done
gcc: warning: combos.o: linker input file unused because linking not done
gcc: warning: crq.o: linker input file unused because linking not done
gcc: warning: crqfnb.o: linker input file unused because linking not done
gcc: warning: dsel05.o: linker input file unused because linking not done
gcc: warning: etime.o: linker input file unused because linking not done
gcc: warning: extract.o: linker input file unused because linking not done
gcc: warning: idmin.o: linker input file unused because linking not done
gcc: warning: init.o: linker input file unused because linking not done
gcc: warning: iswap.o: linker input file unused because linking not done
gcc: warning: kuantile.o: linker input file unused because linking not done
gcc: warning: mcmb.o: linker input file unused because linking not done
gcc: warning: penalty.o: linker input file unused because linking not done
gcc: warning: powell.o: linker input file unused because linking not done
gcc: warning: rls.o: linker input file unused because linking not done
gcc: warning: rq0.o: linker input file unused because linking not done
gcc: warning: rq1.o: linker input file unused because linking not done
gcc: warning: rqbr.o: linker input file unused because linking not done
gcc: warning: rqfn.o: linker input file unused because linking not done
gcc: warning: rqfnb.o: linker input file unused because linking not done
gcc: warning: rqfnc.o: linker input file unused because linking not done
gcc: warning: rqs.o: linker input file unused because linking not done
gcc: warning: sparskit2.o: linker input file unused because linking not done
gcc: warning: srqfn.o: linker input file unused because linking not done
gcc: warning: srqfnc.o: linker input file unused because linking not done
gcc: warning: srtpai.o: linker input file unused because linking not done
** R
** data
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for ‘quantreg’ in library.dynam(lib, package, package.lib):
 shared object ‘quantreg.so’ not found
Error: loading failed
Execution halted
ERROR: loading failed`enter code here`

在尝试过的手动安装中,但错误仍然相同。 请帮忙吗?

1 个答案:

答案 0 :(得分:0)

您需要一个非破坏的R安装,它使用/已将R构建为共享库(然后根据需要将-fPIC-fpic添加到编译中)以及所需组件的共享库,这里是Fortran。

基本上每个Ubuntu或Debian安装(使用提供的包)都是。我们不知道你在这里有什么 - 但是你只是不能在R的共享/可动态加载模块中使用静态编译的libfortran.a