简体   繁体   English

安装软件包时遇到麻烦:ecogbm

[英]trouble installing package: ecogbm

I have downloaded a package from here: 我从这里下载了一个软件包:

ecogbm 经济

I tried to install it like this: 我试图这样安装它:

setwd("d:/RStuff")
install.packages("ecogbm_1.01.tar.gz", repos = NULL, type="source")

Unfortunately I get this: 不幸的是我得到这个:

Installing package(s) into ‘C:/Users/Bla/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
* installing *source* package 'ecogbm' ...
** Creating default NAMESPACE file
** libs

*** arch - i386
ERROR: compilation failed for package 'ecogbm'
* removing 'C:/Users/Bla/Documents/R/win-library/2.15/ecogbm'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-215~1.0/bin/x64/R CMD INSTALL -l         "C:/Users/Bla/Documents/R/win-library/2.15"   "ecogbm_1.01.tar.gz"' had status 1 
2: In install.packages("ecogbm_1.01.tar.gz", type = "source", repos = NULL) :
   installation of package ‘ecogbm_1.01.tar.gz’ had non-zero exit status`

I am not sure whether the i386 means anything. 我不确定i386是否i386 I run the 64bit R version. 我运行64位R版本。 Is my installation process flawed or can someone please verify that there is something wrong with this package? 我的安装过程有缺陷吗?或者有人可以验证此软件包有问题吗? Is there another way to get it installed? 还有另一种安装方法吗? Thanks! 谢谢!

I get the impression that you are trying to install a source package on Windows without the appropriate source-building tools available to you. 我得到的印象是您尝试在Windows上安装源包,而没有可用的适当的源构建工具。 If this is the case then you need to either obtain a binary from somewhere or build one yourself. 如果是这种情况,那么您需要从某个地方获取二进制文件或自己构建一个二进制文件。 Details on how to set up the tool chain required can be found in the R Windows FAQ and the R installation and Administration manual 有关如何设置所需工具链的详细信息,请参见R Windows常见问题以及R安装和管理手册。

If you don't fancy setting up the toolchain yourself, you can make use of the excellent WinBuilder server maintained by Uwe Ligges. 如果您不想自己设置工具链,则可以使用Uwe Ligges维护的出色的WinBuilder服务器。 See the relevant section of the R Windows FAQ for details and the site which is here: http://win-builder.r-project.org/ 有关详细信息和站点,请参见R Windows常见问题解答的相关部分http : //win-builder.r-project.org/

Do note the point about the package being known to work on an UNIX-alike; 请注意有关该软件包可在类似UNIX的系统上工作的要点; given the ecogbm is a beta package there may well be problems building it even on UNIX-alikes which will most likely mean the Windows binary can not be built either. 鉴于ecogbm是beta版软件包,即使在类似 UNIX的操作系统上构建它也可能存在问题,这很可能意味着也无法构建Windows二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM