How to install ROracle package on Windows 7?

后端 未结 8 765
北海茫月
北海茫月 2020-12-02 14:52

I\'m trying to install ROracle package on my Windows 7 client. I have Oracle Instant client and Rtools installed, DBI package is istalled, OCI32_LIB environmental variable h

8条回答
  •  余生分开走
    2020-12-02 15:11

    I had a similar error when trying to install ROracle from source.1

    After searching around a bit I had to undertake what others have mentioned as well as redownloading the tar.gz. When I double checked the download size it was 10KB instead of 234KB.

    1. Re-Download source from: http://cran.r-project.org/web/packages/ROracle/index.html
    2. Updated the following Environmental Varibles in windows

      SET PATH=C:\Rtools\bin;C:\Rtools\gcc-4.6.3;%PATH% SET OCI_INC=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\oci\include SET OCI_LIB32=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\BIN SET OCI_LIB64=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\BIN R CMD INSTALL --build "C:\temp\ROracle_1.1-12.tar.gz"

    3. Output should look like the following: samplecmdoutput

    1 Here is what the previous error looked like:

    C:\Temp>R CMD INSTALL --build "C:\\temp\\ROracle_1.1-12.tar.gz" 
    Error in getOctD(x, offset, len) : invalid octal digit
    

提交回复
热议问题