在输出之后,我在R中安装软件包lme4时有问题。看来它开不了门。有人知道怎么解决吗?我在Linux16.10
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发布于 2018-01-09 17:40:36
简要说明:
checking for nlopt.h... no之前的回答是:做sudo apt-get install libnlopt-dev然后再试一次。r-cran-nloptr和r-cran-lme4,但考虑到您的操作系统为16.04,即从2016年开始,这些版本可能是较旧的版本。https://stackoverflow.com/questions/48173757
复制相似问题