Dan
Dan

Reputation: 1778

ROracle installation: Unable to load shared object 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. 

enter image description here


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('ROracle') /library"


Windows 10, R version 3.2.3

Upvotes: 5

Views: 5073

Answers (2)

chuang shi
chuang shi

Reputation: 46

try to run RStudio with administration privilege, I solved this problem with it.

Upvotes: 0

Borislav Aymaliev
Borislav Aymaliev

Reputation: 833

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)

Upvotes: 5

Related Questions