ROracle not working in R studio

前端 未结 2 1110
猫巷女王i
猫巷女王i 2020-12-18 06:01

I\'m trying to install ROracle package on a unix box. The package gets installed properly. But library(ROracle) does not work fine with the error

library(ROr         


        
2条回答
  •  长情又很酷
    2020-12-18 06:50

    Seems that the problem is caused by the $LD_LIBRARY_PATH environment variable not being set in a way that is system-wide. Unlike other environment variables, $LD_LIBRARY_PATH needs special treatment (see the Ubuntu Help page and search for ld.so.conf.d)

    I was able to solve this by setting the $LD_LIBRARY_PATH as per comment 15:

    echo "/usr/lib/oracle/11.2/client64/lib" | sudo tee /etc/ld.so.conf.d/oracle.conf

    Change the echo statement to where your Oracle Instant Client libraries are stored. (Mine could be found by running echo $OCI_LIB.

    Then update the cache:

    sudo ldconfig -v

    Then open RStudio, execute library("ROracle") and it should work.

提交回复
热议问题