MRO不会安装'xgboost'软件包 [英] MRO won't install 'xgboost' package
问题描述
命令:
install.packages('xgboost')
它适用于普通R但在MRO中安装软件包'xgboost'在fedora linux上有非零退出状态"
日志中的第一件事表明可能会出现问题错误:
sh:I / usr / lib64 / microsoft -r / 3.3 / lib64 / R / include:没有这样的文件或目录
/ usr / lib64 /microsoft-r/3.3/lib64/R/etc/Makeconf:139:目标'xgboost_R.o'的配方失败
make:[xgboost_R.o]错误127(忽略)
我们用相当古老的操作系统(基本上是CentOS 5)构建MRO,所以我们的默认配置会产生一个不知道CXX11及更高版本的Makeconf。使用以下设置编辑`R RHOME` / etc / Makeconf允许我在
CentOS 7系统上构建和安装xgboost:
CXX1X = g ++
CXX1XFLAGS = -DU_STATIC_IMPLEMENTATION -g
CXX1XPICFLAGS = -fpic
CXX1XSTD = -std = gnu ++ 11
希望这会有所帮助!
Rich Calaway
Microsoft R产品团队
command:
install.packages('xgboost')
it works in plain R but in MRO "installation of package ‘xgboost’ had non-zero exit status"
all on a fedora linux
the first thing in the log that suggests that something may go wrong:
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'xgboost_R.o' failed
make: [xgboost_R.o] Error 127 (ignored)
We build MRO with a fairly ancient OS (essentially CentOS 5), and so our default configuration yields a Makeconf with no knowledge of CXX11 and later. Editing `R RHOME`/etc/Makeconf with the following settings allowed me to build and install xgboost on a CentOS 7 system:
CXX1X = g++
CXX1XFLAGS = -DU_STATIC_IMPLEMENTATION -g
CXX1XPICFLAGS = -fpic
CXX1XSTD = -std=gnu++11
Hope this helps!
Rich Calaway
Microsoft R Product Team
这篇关于MRO不会安装'xgboost'软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!