g++: error: /tmp/Rtmp2Tos7n/R.INSTALL2e6e30153a74/nloptr/nlopt-2.4.2/lib/libnlopt_cxx.a: No such file or directory make: *** [nloptr.so] Error 1 ERROR: compilation Failed for package ‘nloptr’ * removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/nloptr’ Warning in install.packages : installation of package ‘nloptr’ had non-zero exit status ERROR: dependency ‘nloptr’ is not available for package ‘lme4’ * removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/lme4’ Warning in install.packages : installation of package ‘lme4’ had non-zero exit status ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’ * removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/pbkrtest’ Warning in install.packages : installation of package ‘pbkrtest’ had non-zero exit status ERROR: dependency ‘lme4’ is not available for package ‘BradleyTerry2’ * removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/BradleyTerry2’ Warning in install.packages : installation of package ‘BradleyTerry2’ had non-zero exit status ERROR: dependency ‘pbkrtest’ is not available for package ‘car’ * removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/car’ Warning in install.packages : installation of package ‘car’ had non-zero exit status ERROR: dependencIEs ‘car’,‘BradleyTerry2’ are not available for package ‘caret’ * removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/caret’ Warning in install.packages : installation of package ‘caret’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpG9dYqn/downloaded_packages’
我调查了另一个有类似问题的问题
Dependency issue while installing caret package in R
此问题的解决方案是首先安装每个依赖项,但它们都有相同的错误消息.例如:
>install.packages('nloptr')g++: error: /tmp/RtmpgEn54A/R.INSTALL7015350f0d03/nloptr/nlopt-2.4.2/lib/libnlopt_cxx.a: No such file or directorymake: *** [nloptr.so] Error 1ERROR: compilation Failed for package ‘nloptr’* removing ‘/rmt/csfiles/pgrads/mava290/R/x86_64-suse-linux-gnu-library/3.1/nloptr’Warning in install.packages : installation of package ‘nloptr’ had non-zero exit statusThe downloaded source packages are in ‘/tmp/RtmpG9dYqn/downloaded_packages’
我也试过改变回购即. install.packages(‘caret’,repos =’http://cran.rstudio.com/’)但它也可以工作.
我的会话信息如下:
> sessionInfo()R version 3.1.2 (2014-10-31)Platform: x86_64-suse-linux-gnu (64-bit)locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_ColLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_name=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages:[1] stats graphics Grdevices utils datasets methods base loaded via a namespace (and not attached):[1] tools_3.1.2
很高兴,如果有人可以帮助!
谢谢 :)
解决方法 我最近也遇到了nlopt的问题.通过从YaST(或您首选的包管理器)安装nlopt-devel及其相关依赖项,可以轻松解决这个问题. 总结以上是内存溢出为你收集整理的无法在R中安装插入符包(在我的Linux机器中)全部内容,希望文章能够帮你解决无法在R中安装插入符包(在我的Linux机器中)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)