ROracle installation :: Unable to load shared object error

為{幸葍}努か 提交于 2019-12-01 05:07:20

问题


  • 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')

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. 


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 version 3.2.3


回答1:


These two steps should fix it for you:

  1. Rename your "Path" environmental variable to "PATH"
  2. Install the ROracle package only after you have set the Oracle Instant Client in environmental variables. (Just run install.packages() again)


来源:https://stackoverflow.com/questions/36802847/roracle-installation-unable-to-load-shared-object-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!