本文介绍了ROracle安装::无法加载共享库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

  • I need to connect R to an Oracle database
  • Followed the instructions on https://cran.r-project.org/web/packages/ROracle/INSTALL, exactly, step by step
  • Getting the following error:

library('ROracle')

library('ROracle')

inDL(x,as.logical(local),as.logical(now),...)中的错误:无法加载共享对象'C:/Users/Daniel/R/winlibrary/3.2/ROracle/libs /x64/ROracle.dll': LoadLibrary失败:%1不是有效的Win32应用程序.

Error in inDL(x, as.logical(local), as.logical(now), ...) :unable to load shared object 'C:/Users/Daniel/R/winlibrary/3.2/ROracle/libs/x64/ROracle.dll': LoadLibrary failure: %1 is not a valid Win32 application.

library('ROracle')
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/Daniel/R/winlibrary/3.2/ROracle/libs/x64/ROracle.dll':
LoadLibrary failure:  %1 is not a valid Win32 application.

我不知道从哪里开始解决此问题.这是libPath()的结果

I don't know where to start fixing this. Here's the results of libPath()

> .libPaths()
"C:/Users/Daniel/R/win-library/3.2"  "C:/Program Files/R/R-3.2.3/library"


Windows 10,R版本3.2.3


Windows 10, R version 3.2.3

推荐答案

这两个步骤应该可以为您解决:

These two steps should fix it for you:

  1. 将路径"环境变量重命名为路径"
  2. 仅在环境变量中设置了Oracle Instant Client后,才安装ROracle软件包. (只需再次运行install.packages()即可)

这篇关于ROracle安装::无法加载共享库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 08:51