所以我无法加载 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’
Run Code Online (Sandbox Code Playgroud)
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"
Run Code Online (Sandbox Code Playgroud)
我的 .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"
Run Code Online (Sandbox Code Playgroud)
由于 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
让我知道我可以如何提供帮助。