1

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

根据这个问题ROracle 安装 :: 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

任何帮助表示赞赏。谢谢。

4

0 回答 0