无法加载ROracle:无法加载共享对象ROracle.so:libclntsh.so.11.1没有这样的文件或目录 [英] failing to load ROracle: unable to load shared object ROracle.so: libclntsh.so.11.1 No such file or directory

查看:259
本文介绍了无法加载ROracle:无法加载共享对象ROracle.so:libclntsh.so.11.1没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我无法加载ROracle.我确实是个新手,所以很感激任何信息,并且有关提供什么进一步信息的任何信息也将有所帮助.

So I can't load ROracle. I am indeed very new to this so any information is appreciated and any info regarding what further information to give would be helpful as well.

> 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:

ROracle.so is exactly where it says it is. libclntsh.so.11.1 can be found at /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1. This is the result of .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文件

My .Renviron file

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

I had a lot of trouble installing ROracle to begin with due to OCI libraries but it eventually worked with 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

让我知道我该如何帮忙.

Let me know how I can help.

推荐答案

ORACLE_HOME应该仅指向一个位置.您不应该设置LD_LIBRARY_PATH_64变量吗?

ORACLE_HOME should point to just one location. Shouldn't you set LD_LIBRARY_PATH_64 variable?

这篇关于无法加载ROracle:无法加载共享对象ROracle.so:libclntsh.so.11.1没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆