【问题标题】:Microsoft R Open + line breaks during package compilation包编译期间的 Microsoft R Open + 换行符
【发布时间】:2020-11-17 07:28:28
【问题描述】:

由于某些奇怪的原因,Microsoft R Open 的最新版本无法编译各种包,因为某些东西(我认为是 Rcpp)产生了多个 R 会话,并且重复调用清除终端窗口正在引入换行符编译器命令的中间。见下文。似乎没有可靠的方法来完全抑制冗长的启动消息,这似乎是导致此错误的原因。

请注意,/opt/microsoft/ropen/4.0.2/lib64/R/bin/R CMD INSTALL/opt/microsoft/ropen/4.0.2/lib64/R/bin/Rscript 也会发生同样的情况

想法?有什么建议吗?

$ /opt/microsoft/ropen/4.0.2/lib64/R/bin/R -q
> install.packages('minqa')
Installing package into ‘/raid/users/g-socsldap/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 53548  100 53548    0     0   247k      0 --:--:-- --:--:-- --:--:--  247k
Microsoft R Open 4.0.2
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2020 Microsoft Corporation

Using the Intel MKL for parallel mathematical computing (using 44 cores).

Default CRAN mirror snapshot taken on 2020-07-16.
See: https://mran.microsoft.com/.

* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** using staged installation
** 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/opt/microsoft/ropen/4.0.2/lib64/R/include -DNDEBUG  -I'/opt/microsoft/ropen/4.0.2/lib64/R/library/Rcpp/include' -DU_STATIC_IMPLEMENTATION   -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -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
g++ -shared -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -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 Microsoft R Open 4.0.2 The enhanced R distribution from Microsoft Microsoft packages Copyright (C) 2020 Microsoft Corporation Using the Intel MKL for parallel mathematical computing (using 44 cores). Default CRAN mirror snapshot taken on 2020-07-16. See: https://mran.microsoft.com/. -lgfortran -lm -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -lR
g++: error: Microsoft: No such file or directory
g++: error: R: No such file or directory
g++: error: Open: No such file or directory
g++: error: 4.0.2: No such file or directory
g++: error: The: No such file or directory
g++: error: enhanced: No such file or directory
g++: error: R: No such file or directory
g++: error: distribution: No such file or directory
g++: error: from: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: packages: No such file or directory
g++: error: Copyright: No such file or directory
g++: error: (C): No such file or directory
g++: error: 2020: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Corporation: No such file or directory
g++: error: Using: No such file or directory
g++: error: the: No such file or directory
g++: error: Intel: No such file or directory
g++: error: MKL: No such file or directory
g++: error: for: No such file or directory
g++: error: parallel: No such file or directory
g++: error: mathematical: No such file or directory
g++: error: computing: No such file or directory
g++: error: (using: No such file or directory
g++: error: 44: No such file or directory
g++: error: cores).: No such file or directory
g++: error: Default: No such file or directory
g++: error: CRAN: No such file or directory
g++: error: mirror: No such file or directory
g++: error: snapshot: No such file or directory
g++: error: taken: No such file or directory
g++: error: on: No such file or directory
g++: error: 2020-07-16.: No such file or directory
g++: error: See:: No such file or directory
g++: error: https://mran.microsoft.com/.: No such file or directory
make: *** [/opt/microsoft/ropen/4.0.2/lib64/R/share/make/shlib.mk:6: minqa.so] Error 1
ERROR: compilation failed for package ‘minqa’
* removing ‘/raid/users/g-socsldap/R/x86_64-pc-linux-gnu-library/4.0/minqa’

The downloaded source packages are in
    ‘/tmp/RtmpMlXevk/downloaded_packages’
Warning message:
In install.packages("minqa") :
  installation of package ‘minqa’ had non-zero exit status

【问题讨论】:

  • 我的建议是将此报告给 MRO 支持

标签: r centos centos7


【解决方案1】:

我在--vanilla 模式下运行 R 时发现了这个问题(此模式忽略了位于 /opt/microsoft/ropen/4.0.2/lib64/R/etc/Rprofile.site 中的 .Rprofile.site):

R --vanilla
install.packages("minqa")
// select any link you want

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-23
    • 1970-01-01
    • 1970-01-01
    • 2018-11-30
    • 1970-01-01
    • 2023-02-08
    • 2017-12-01
    • 1970-01-01
    相关资源
    最近更新 更多