2017-08-24 77 views
0

我試圖通過rstudio安裝名爲「quantreg」和「的igraph」的R包,但無效符號指數顯示錯誤:[R軟件包安裝錯誤:搬遷0有11

Here is what Rstudio console shows

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` 

在嘗試手動安裝,但錯誤保持不變。 請幫忙嗎?

回答

0

需要其使用/已建成R作爲一個共享庫(其然後導致-fPIC-fpic被添加到根據需要編譯)以及共享庫所需要的組件的一個非破碎R安裝過程中,這裏Fortran語言。

基本上每個Ubuntu或Debian安裝(使用提供的軟件包)都是。我們不知道你在這裏有什麼 - 但你只是不能使用靜態編譯的libfortran.a在R的共享/動態加載模塊。

+0

我是新來的Ubuntu。請讓我知道我能做些什麼 – srk

+0

嘗試安裝'r-base-dev'。也許你只是錯過了'libgfortran'的相應'-dev'包。你沒有提供足夠的信息來說更多。 –

+0

如何在「R CMD安裝」中進行更改以用-fPIC – srk