How to install ROracle package on Windows 7?

后端 未结 8 742
北海茫月
北海茫月 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:17

    I had this exact problem as well, including the OCI_INC error. They actually talk about it in the INSTALL file in the .tar.gz package, you can read more there.

    You have to set the OCI_INC variable to the include directory like this:

    set OCI_INC=C:\oracle\product\11.2.0\client_2\oci\include
    

    Or whereever your file is. Here was my complete setup to get things installed from an Admin privileged command line.

    set OCI_LIB64=C:\oracle\product\11.2.0\client_2\BIN
    set OCI_INC=C:\oracle\product\11.2.0\client_2\oci\include
    set PATH=C:\oracle\product\11.2.0\client_2\BIN;C:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;%PATH%
    "C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL --build "C:/Your/Path/To/ROracle_1.1-10.tar.gz"
    

    Also, make sure to change client_2 to client_1 and OCI_LIB64 to OCI_LIB32 if you are trying to do a 32-bit install.

提交回复
热议问题