我正在尝试安装一些R包,在linux机器上使用Packrat (这台机器上没有根)。其中一个软件包安装失败,原因是依赖于'ade4‘。在尝试安装'ade4‘时,我得到了以下信息:
* installing *source* package ‘ade4’ ...
** package ‘ade4’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c adesub.c -o adesub.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c divsub.c -o divsub.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c fourthcorner.c -o fourthcorner.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c init.c -o init.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c phylog.c -o phylog.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c testamova.c -o testamova.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c testdim.c -o testdim.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c testrlq.c -o testrlq.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c tests.c -o tests.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o ade4.so adesub.o divsub.o fourthcorner.o init.o phylog.o testamova.o testdim.o testrlq.o tests.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6: recipe for target 'ade4.so' failed
make: *** [ade4.so] Error 1
ERROR: compilation failed for package ‘ade4’
* removing ‘/users/studs/bsc/2013/barashe/paprbag/packrat/lib/x86_64-pc-linux-gnu/3.4.3/ade4’
The downloaded source packages are in
‘/tmp/RtmpnD67Gk/downloaded_packages’
Warning message:
In install.packages("ade4") :
installation of package ‘ade4’ had non-zero exit status
> /usr/share/R/share/make/shlib.mk:6: recipe for target 'ade4.so' failed试图寻找解决方案,但没有找到任何解决方案。
发布于 2018-05-13 11:55:41
您的计算机上缺少三个库。利布拉帕语和利布福兰语。您必须先安装它们才能编译这个包。
sudo apt-get install libblas-dev liblapack-dev libgfortran-8-dev但是如果你不是管理员,我不知道如何解决这个问题。
https://stackoverflow.com/questions/50313707
复制相似问题