【发布时间】:2014-02-04 14:39:27
【问题描述】:
我正在使用their github account 上的README.md 文件安装lme4,但在安装依赖项时失败。我尝试单独安装它们,但在安装 minqa 包时仍然崩溃。我在 RHEL6 上使用 R/3.0.2。在构建期间,编译器争论 RScript 不存在,我检查它在 R/bin 文件夹中。
这是 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’
【问题讨论】:
-
这很奇怪。 可能最好询问 r-sig-mixed-models,但是......我认为这一定是某种通用环境配置问题。您是否能够:(1)从源代码安装 CRAN 软件包? (2) 通过
devtools::install_github安装其他包?由于minqa在 CRAN 上,请先尝试install.packages("minqa"),然后重试您的install_github("lme4","lme4")... -
PS 我通过谷歌搜索你的错误信息得到的只是this non-reproducible R bug ...你从
system("which Rscript")得到什么? -
@BenBolker
[install@lionxv 3.0.2]$ which Rscript /usr/global/R/3.0.2/R/bin/Rscript -
同意,这很奇怪。对于 R/3.0.1,它的工作非常简单。我可以从源代码安装 CRAN 包,但没有尝试 devtools::install_github。我会试一试。我也跑了
install.package("minqa", dependencies=TRUE),但仍然遇到同样的错误。 -
这代替了 g++ 编译器。此日志来自操作系统 RHEL5:
icpc -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 -L/gpfs/apps/x86_64-rhel5/R/3.0.1/lib64/R/library/Rcpp/lib -lRcpp -Wl,-rpath,/gpfs/apps/x86_64-rhel5/R/3.0.1/lib64/R/library/Rcpp/lib -lifport -lifcore -limf -lsvml -lm -lipgo -lirc -lpthread -lirc_s -ldl -L/usr/global/R/3.0.1/lib64/R/lib -lR installing to /gpfs/apps/x86_64-rhel5/R/3.0.1/lib64/R/library/minqa/libs