首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R- lme4 - nlopt-2.4.2安装失败

R- lme4 - nlopt-2.4.2安装失败
EN

Stack Overflow用户
提问于 2018-01-09 17:33:59
回答 1查看 451关注 0票数 0

在输出之后,我在R中安装软件包lme4时有问题。看来它开不了门。有人知道怎么解决吗?我在Linux16.10

代码语言:javascript
复制
checking nlopt.h usability... no
checking nlopt.h presence... no
checking for nlopt.h... no
configure: Need to download and build NLopt
trying URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
Error in download.file(url = "http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz",  : 
  cannot open URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
Execution halted
/bin/tar: This does not look like a tar archive

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
Warning message:
In untar(tarfile = "nlopt-2.4.2.tar.gz") :
  '/bin/tar -xf 'nlopt-2.4.2.tar.gz'' returned error code 2
configure: Starting to install library to /tmp/Rtmp1o9ETL/R.INSTALL2a78412beb2/nloptr/nlopt-2.4.2
./configure: line 3325: cd: nlopt-2.4.2: No such file or directory
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-01-09 17:40:36

简要说明:

  • 没有“Linux16.10”这样的东西
  • 有Ubuntu 16.10
  • 在Ubuntu上可选,请参阅这个来自CRAN的自述关于如何获得R和一些由CRAN预先构建的包
  • checking for nlopt.h... no之前的回答是:做sudo apt-get install libnlopt-dev然后再试一次。
  • 您也可以从Ubuntu获得r-cran-nloptrr-cran-lme4,但考虑到您的操作系统为16.04,即从2016年开始,这些版本可能是较旧的版本。
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48173757

复制
相关文章

相似问题

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