首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >连接到(ROracle)失败

连接到(ROracle)失败
EN

Stack Overflow用户
提问于 2016-07-04 14:28:59
回答 1查看 1.3K关注 0票数 0

它不会装载图书馆的。

代码语言:javascript
复制
setwd("C:/Users/***/Desktop")
install.packages('ROracle_1.2-1.zip', repos = NULL)
#Installing package into ‘C:/Users/***/Documents/R/win-library/3.3 (as ‘lib’ is unspecified)

#package ‘ROracle’ successfully unpacked and MD5 sums checked

library('ROracle')
#Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Users/***/Documents/R/win-library/3.3/ROracle/libs/x64/ROracle.dll': LoadLibrary failure:  The specified module could not be found.

我手动检查了文件路径,ROracle.dll就在那里。

编辑:

我有RODBC和RJDBC在工作。我只是不明白为什么ROracle不安装:

代码语言:javascript
复制
library(ROracle)
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Users/robsoo01/Documents/R/win-library/3.3/ROracle/libs/x64/ROracle.dll':
  LoadLibrary failure:  The specified module could not be found.

Error: package or namespace load failed for ‘ROracle’
 install.packages("ROracle")
Installing package into ‘C:/Users/***/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘ROracle’

trying URL 'https://cran.rstudio.com/src/contrib/ROracle_1.2-2.tar.gz'
Content type 'application/x-gzip' length 304229 bytes (297 KB)
downloaded 297 KB

* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: cannot find Oracle Client.
       Please set OCI_LIB64 to specify its location.
Warning: running command 'sh ./configure.win' had status 1
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/***/Documents/R/win-library/3.3/ROracle'
* restoring previous 'C:/Users/***/Documents/R/win-library/3.3/ROracle'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\***\Documents\R\win-library\3.3" C:\Users\***\AppData\Local\Temp\RtmpMvcLO4/downloaded_packages/ROracle_1.2-2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ROracle’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\***\AppData\Local\Temp\RtmpMvcLO4\downloaded_packages’

我猜有些Oracle文件需要安装,但是没有一个文档是非常清晰的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-14 19:24:54

为了使ROracle能够正确安装和加载,您应该使用Oracle 64位和Windows64位。一旦我在我的机器上安装了64位Oracle客户端,这个错误就消失了。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38187093

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档