在Windows 32位中安装Roracle包时出错

时间:2014-02-05 18:08:23

标签: r oracle installation

我正在尝试在我的32位Windows系统中安装Roracle,我收到了下面提到的错误

已安装Oracle和R.

以下路径和其他环境变量设置

PATH=C:\Oracle\product\11.2.0\client_1\BIN;C:\Program Files\R\R-3.0.2\bin\i386;
OCI_INC=C:\Oracle\11.2.0\oci\include
OCI_LIB32=C:\Oracle\product\11.2.0\client_1\BIN

我在R Console中输入的命令 > install.packages("ROracle",type = "source")

我得到的结果

--- Please select a CRAN mirror for use in this session ---
trying URL 'http://cran.rstudio.com/src/contrib/ROracle_1.1-10.tar.gz'
Content type 'application/x-gzip' length 168193 bytes (164 Kb)
opened URL
downloaded 164 Kb


Installing source package ROracle ...
package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'ROracle'
Removing 'C:/Program Files/R/R-3.0.2/library/ROracle'

下载的源包在

C:\Users\sjayaraman\AppData\Local\Temp\RtmpSWQTi4\downloaded_packages

警告信息:

  

1:运行命令'“C:/PROGRA~1/R/R-30~1.2/bin/i386/R”CMD INSTALL -l“C:\ Program Files \ R \ R-3.0.2 \ library “C:\ Users \ SJAYAR~1 \ AppData \ Local \ Temp \ RtmpSWQTi4 / downloaded_pa​​ckages / ROracle_1.1-10.tar.gz”状态为1   2:在install.packages(“ROracle”,type =“source”)中:
        包'ROracle'的安装具有非零退出状态

1 个答案:

答案 0 :(得分:1)

安装RTools: http://cran.r-project.org/bin/windows/Rtools/

如果您正在使用它,请重新启动R和您的IDE。