首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在R中安装软件包‘ade4’

在R中安装软件包‘ade4’
EN

Stack Overflow用户
提问于 2018-05-13 07:20:07
回答 1查看 1.2K关注 0票数 1

我正在尝试安装一些R包,在linux机器上使用Packrat (这台机器上没有根)。其中一个软件包安装失败,原因是依赖于'ade4‘。在尝试安装'ade4‘时,我得到了以下信息:

代码语言:javascript
复制
* 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

试图寻找解决方案,但没有找到任何解决方案。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-13 11:55:41

您的计算机上缺少三个库。利布拉帕语和利布福兰语。您必须先安装它们才能编译这个包。

代码语言:javascript
复制
sudo apt-get install libblas-dev liblapack-dev libgfortran-8-dev

但是如果你不是管理员,我不知道如何解决这个问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50313707

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档