RInside 安装错误 [英] RInside installation error

查看:53
本文介绍了RInside 安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的计算机中创建 R 开发环境.在最后一小时,我可以成功安装 RTools 和 RCpp.但是当我尝试最后一个元素 RInside 包时,出现以下错误.我可以看到原因是因为 g++ 或 make 无法识别包含空格的路径(程序文件 -> 文件)但是我如何更改 make 文件或电池问题是...编译后生成的 make 文件在哪里?

I am trying to make a R development environment in my computer. During last hour, I could successfully install RTools and RCpp. But when I tried the last element RInside package, I get following error. I can see the reason is because g++ or make does not recognize path including space (Program Files -> Files) But how can I change the make file or batter question is ... where is the make file producing following compilation?

> install.packages(c("RInside"),type="source")
trying URL 'http://cran.revolutionanalytics.com/src/contrib/RInside_0.2.8.tar.gz'
Content type 'application/x-gzip' length 61012 bytes (59 Kb)
opened URL
downloaded 59 Kb

* installing *source* package 'RInside' ...
** package 'RInside' successfully unpacked and MD5 sums checked
** libs
cygwin warning:
  MS-DOS style path detected: C:/PROGRA~1/R/R-215~1.1/etc/i386/Makeconf
  Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-215~1.1/etc/i386/Makeconf
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
C:/PROGRA~1/R/R-215~1.1/bin/i386/Rscript.exe tools/RInsideAutoloads.r > RInsideAutoloads.h
C:/PROGRA~1/R/R-215~1.1/bin/i386/Rscript.exe tools/RInsideEnvVars.r   > RInsideEnvVars.h
g++  -I"C:/PROGRA~1/R/R-215~1.1/include" -DNDEBUG -I../inst/include/   -I"C:/Program Files/R/R-2.15.1/library/Rcpp/include"      -O2 -Wall  -mtune=core2 -c MemBuf.cpp -o MemBuf.o
g++  -I"C:/PROGRA~1/R/R-215~1.1/include" -DNDEBUG -I../inst/include/   -I"C:/Program Files/R/R-2.15.1/library/Rcpp/include"      -O2 -Wall  -mtune=core2 -c RInside.cpp -o RInside.o
g++ -shared -s -static-libgcc -o RInside.dll tmp.def MemBuf.o RInside.o C:/Program Files/R/R-2.15.1/library/Rcpp/lib/i386/libRcpp.a -LC:/PROGRA~1/R/R-215~1.1/bin/i386 -lR
g++.exe: error: Files/R/R-2.15.1/library/Rcpp/lib/i386/libRcpp.a: No such file or directory
ar qc libRInside.a MemBuf.o RInside.o
cp libRInside.a ../inst/lib/i386
g++  -Wl,--export-all-symbols -shared -o libRInside.dll MemBuf.o RInside.o C:/Program Files/R/R-2.15.1/library/Rcpp/lib/i386/libRcpp.a   -L"C:/PROGRA~1/R/R-215~1.1/bin/i386" -lR  -lws2_32
g++.exe: error: Files/R/R-2.15.1/library/Rcpp/lib/i386/libRcpp.a: No such file or directory
make: *** [libRInside.dll] Error 1
ERROR: compilation failed for package 'RInside'
* removing 'C:/Program Files/R/R-2.15.1/library/RInside'

The downloaded source packages are in
        ‘C:\Users\Administrator\AppData\Local\Temp\Rtmp6lSKly\downloaded_packages’
Warning messages:
1: running command 'C:/PROGRA~1/R/R-215~1.1/bin/i386/R CMD INSTALL -l "C:/Program Files/R/R-2.15.1/library"   C:\Users\ADMINI~1\AppData\Local\Temp\Rtmp6lSKly/downloaded_packages/RInside_0.2.8.tar.gz' had status 1 
2: In install.packages(c("RInside"), type = "source") :
  installation of package ‘RInside’ had non-zero exit status
> 

推荐答案

安装在不包含空格的路径中 -- 我喜欢 C:/opt/R/R-library/R 包.

Install in a path that does not include spaces -- I like C:/opt/R/R-library/ for my R packages.

由于空间原因,最后的链接命令失败.

The final link command fails because of the space.

此问题在此之前和 rcpp-devel 列表中已被多次询问和回答.

This question has been asked and answered numerous times before here and on the rcpp-devel list.

这篇关于RInside 安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆