在R/3.0.2中安装minqa时出错 [英] Error Installing minqa in R/3.0.2
问题描述
我正在使用其github帐户 lme4 .>并且在安装依赖项时失败.我试图单独安装它们,但在安装 minqa
软件包时仍然崩溃.我在RHEL6上使用R/3.0.2.在构建期间,编译器会争论RScript不存在,我检查它是否位于R/bin文件夹中.
I am installing lme4
using the README.md file on their github account and I fail during installing the dependencies. I tried to install them separately and still crash at installing the minqa
package. I'm using R/3.0.2 on RHEL6. During the build the compiler argues about RScript not existing which as I check it is in the R/bin folder.
这是R INSTALL的日志:
Here is the log to the R INSTALL:
$ R CMD INSTALL minqa_1.2.2.tar.gz
* installing to library ‘/gpfs/apps/x86_64-rhel6/R/3.0.2/R/library’
* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** libs
gfortran -fpic -g -O2 -c altmov.f -o altmov.o
gfortran -fpic -g -O2 -c bigden.f -o bigden.o
gfortran -fpic -g -O2 -c biglag.f -o biglag.o
gfortran -fpic -g -O2 -c bobyqa.f -o bobyqa.o
gfortran -fpic -g -O2 -c bobyqb.f -o bobyqb.o
gfortran -fpic -g -O2 -c lagmax.f -o lagmax.o
g++ -I/gpfs/apps/x86_64-rhel6/R/3.0.2/R/include -DNDEBUG -I/usr/local/include -I"/gpfs/apps/x86_64-rhel6/R/3.0.2/R/library/Rcpp/include" -fpic -g -O2 -c minqa.cpp -o minqa.o
gfortran -fpic -g -O2 -c newuoa.f -o newuoa.o
gfortran -fpic -g -O2 -c newuob.f -o newuob.o
gfortran -fpic -g -O2 -c prelim.f -o prelim.o
gfortran -fpic -g -O2 -c rescue.f -o rescue.o
gfortran -fpic -g -O2 -c trsapp.f -o trsapp.o
gfortran -fpic -g -O2 -c trsbox.f -o trsbox.o
gfortran -fpic -g -O2 -c trstep.f -o trstep.o
gfortran -fpic -g -O2 -c uobyqa.f -o uobyqa.o
gfortran -fpic -g -O2 -c uobyqb.f -o uobyqb.o
gfortran -fpic -g -O2 -c update.f -o update.o
gfortran -fpic -g -O2 -c updatebobyqa.f -o updatebobyqa.o
Rscript execution error: No such file or directory
g++ -shared -L/usr/local/lib64 -o minqa.so altmov.o bigden.o biglag.o bobyqa.o bobyqb.o lagmax.o minqa.o newuoa.o newuob.o prelim.o rescue.o trsapp.o trsbox.o trstep.o uobyqa.o uobyqb.o update.o updatebobyqa.o -lgfortran -lm -L/gpfs/apps/x86_64-rhel6/R/3.0.2/R/lib -lR
Rscript execution error: No such file or directory
installing to /gpfs/apps/x86_64-rhel6/R/3.0.2/R/library/minqa/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/gpfs/apps/x86_64-rhel6/R/3.0.2/R/library/minqa/libs/minqa.so':
/gpfs/apps/x86_64-rhel6/R/3.0.2/R/library/minqa/libs/minqa.so: undefined symbol: _ZTIN4Rcpp7RObjectE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/gpfs/apps/x86_64-rhel6/R/3.0.2/R/library/minqa’
推荐答案
当尝试将 lme4
从1.0-5升级到1.0-6时,也会发生类似的错误.错误信息类似于:
A similar error also occurs when trying to upgrade lme4
from 1.0-5 to 1.0-6. The error message is something like:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/local/lib/R/site-library/minqa/libs/minqa.so':
libRcpp.so: cannot open shared object file: No such file or directory
ERROR: lazy loading failed for package ‘lme4’
要解决此问题,请按以下顺序安装软件包:
install.packages('Rcpp')
install.packages('RcppEigen')
install.packages('minqa')
install.packages('lme4')
我想这与RCpp有关;只需将版本从0.10.6升级到0.11.0并发生一些ABI中断更改?
I guess it's related to RCpp; just upgrade the version from 0.10.6 to 0.11.0 and some ABI break change happens?
这篇关于在R/3.0.2中安装minqa时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!