ROracle安装-无法加载共享对象ROracle.dll

时间:2018-12-20 09:14:23

标签: r roracle rtools

我正在尝试在Windows 10 64位系统上安装ROracle软件包。 R版本是Microsoft R Open 3.5.0。

我已根据对问题ROracle installation :: Unable to load shared object error的正确回答建议,将环境变量中的“路径”名称更改为“路径”。我仍然无法解决此问题。  以下是程序包的安装运行及其结果。

> install.packages("ROracle")


* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
/cygdrive/c/oracleclient/instantclient_18_3/genezi.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
/cygdrive/c/oracleclient/instantclient_18_3/genezi.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
[: 64-bit: unknown operand
[: 32-bit: unknown operand
Oracle
found Oracle Client C:\oracleclient\instantclient_18_3
found Oracle Client include C:\oracleclient\instantclient_18_3\sdk\include
copying from C:\oracleclient\instantclient_18_3\sdk\include
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture

c:/Rtools/mingw_64/bin/gcc -m64 -I"C:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/include" -DNDEBUG -I./oci    -I"C:/swarm/workspace/External-R-3.5.0/vendor/extsoft/include"     -O2 -Wall  -std=gnu99 -mtune=core2 -c rodbi.c -o rodbi.o
c:/Rtools/mingw_64/bin/gcc -m64 -I"C:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/include" -DNDEBUG -I./oci    -I"C:/swarm/workspace/External-R-3.5.0/vendor/extsoft/include"     -O2 -Wall  -std=gnu99 -mtune=core2 -c rooci.c -o rooci.o
c:/Rtools/mingw_64/bin/gcc -m64 -shared -s -static-libgcc -o ROracle.dll tmp.def rodbi.o rooci.o C:\oracleclient\instantclient_18_3/oci.dll -LC:/swarm/workspace/External-R-3.5.0/vendor/extsoft/lib/x64 -LC:/swarm/workspace/External-R-3.5.0/vendor/extsoft/lib -LC:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/bin/x64 -lR
installing to C:/Users/xxxx/Documents/R/win-library/3.5/ROracle/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for 'ROracle' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/xxxx/Documents/R/win-library/3.5/ROracle/libs/x64/ROracle.dll':
LoadLibrary failure:  The specified module could not be found.

Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/xxxx /Documents/R/win-library/3.5/ROracle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘ROracle’ had non-zero exit status

感谢您的帮助。谢谢。

0 个答案:

没有答案