无法加载ROracle:无法加载共享对象ROracle.so:libclntsh.so.11.1没有这样的文件或目录

所以我无法加载ROracle.我确实对此非常陌生,所以任何信息都会受到赞赏,并且有关提供更多信息的任何信息也会有所帮助.

> library(ROracle)
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '~/R/x86_64-pc-linux-gnu-library/2.14/ROracle/libs/ROracle.so':
  libclntsh.so.11.1: cannot open shared object file: No such file or directory
Error: package/namespace load failed for ‘ROracle’

ROracle.so就是它所说的. libclntsh.so.11.1可以在/usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1找到.这是.libPaths的结果:

> .libPaths()
[1] "/home/nguiller/R/x86_64-pc-linux-gnu-library/2.14" "/usr/local/lib/R/site-library"                     "/usr/lib/R/site-library"                          
[4] "/usr/lib/R/library"                                "/usr/lib/rstudio/R/library" 

我的.Renviron文件

LD_LIBRARY_PATH="/usr/lib/oracle/11.2/client64/lib:/home/nguiller/Downloads/instantclient_11_2"
ORACLE_HOME="/usr/lib/oracle/11.2/client64/:/home/nguiller/Downloads/instantclient_11_2"
OCI_LIB="/usr/lib/oracle/11.2/client64/lib"

由于OCI库,我在安装ROracle时遇到了很多麻烦,但它最终使用了R CMD INSTALL –configure-ags =’ – with-oci-lib = /usr/lib / oracle / 11.2 / client64 / lib –with-oci-inc = /usr/include / oracle / 11.2 / client64’ROracle_1.1-8.tar.gz

让我知道我可以提供哪些帮助.

最佳答案 ORACLE_HOME应该只指向一个位置.你不应该设置LD_LIBRARY_PATH_64变量吗?

点赞