本文介绍了Windows上的软件包"RMongo"编译失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试安装RMongo版本0.1.0时遇到问题.我的代码如下:

I am having trouble trying to install RMongo version 0.1.0. My code is as follows:

library(devtools)
install_github("tc/RMongo")

我得到的系统输出是:

Downloading GitHub repo tc/RMongo@master
Installing RMongo
"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore CMD INSTALL  \
  "C:/XX/AppData/Local/Temp/RtmpSGqhcG/devtools23d44de847da/tc-RMongo-9b6d1b1"  \
  --library="C:/XX/Documents/R/win-library/3.2" --install-tests 

* installing *source* package 'RMongo' ...
** libs

*** arch - i386
no DLL was created
ERROR: compilation failed for package 'RMongo'
* removing 'C:/XX/Documents/R/win-library/3.2/RMongo'
Error: Command failed (1)

我无法在R中使用install package方法,因为我需要最新版本的RMongo才能支持Mongo 3.0

I cannot use the install package method in R because I require the latest version of RMongo to support Mongo 3.0

无法弄清楚为什么它不起作用.尝试重新安装Rtools和devtools,但错误仍然存​​在

Can't figure out why it does not work. Have tried to reinstall Rtools and devtools but the error still remains

我的会话信息如下:

Session info --------------------------------------------------------------------------
 setting  value                       
 version  R version 3.2.1 (2015-06-18)
 system   x86_64, mingw32             
 ui       RStudio (0.99.467)          
 language (EN)                        
 collate  English_United States.1252  
 tz       Asia/Kuala_Lumpur           
 date     2015-10-09                  

Packages ------------------------------------------------------------------------------
 package  * version date       source        
 curl       0.9.3   2015-08-25 CRAN (R 3.2.2)
 devtools * 1.9.1   2015-09-11 CRAN (R 3.2.2)
 digest     0.6.8   2014-12-31 CRAN (R 3.2.1)
 httr       1.0.0   2015-06-25 CRAN (R 3.2.2)
 magrittr   1.5     2014-11-22 CRAN (R 3.2.1)
 memoise    0.2.1   2014-04-22 CRAN (R 3.2.2)
 R6         2.1.1   2015-08-19 CRAN (R 3.2.2)
 stringi    0.5-5   2015-06-29 CRAN (R 3.2.1)
 stringr    1.0.0   2015-04-30 CRAN (R 3.2.1)

我的Java版本是版本8更新51想知道我是否错过了所需的任何步骤吗?

My java version is version 8 update 51Wondering if I have missed out any steps required?

推荐答案

访问链接: https://cran.r-project.org/web/packages/RMongo/index.html

从下载部分,根据您的系统要求下载RMongo二进制文件.

From the downloads section, download the RMongo binaries as per your system requirments.

下载完所需的二进制文件后,输入以下命令:

After you finish downloading the required binaries type the command below:

install.packages("PATH_TO_DOWNLOADED_FILE", repos = NULL, type="source")

这篇关于Windows上的软件包"RMongo"编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 08:15