0
而在Windows 10我得到停留在這一點上如何在Windows上安裝R包甲骨文10 64位
install.packages("ROracle") Installing package into ‘C:/Users/admin/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.3-1.tar.gz' Content type 'application/x-gzip' length 308252 bytes (301 KB) downloaded 301 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/admin/Documents/R/win-library/3.3/ROracle' Warning in install.packages : running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\admin\Documents\R\win-library\3.3" C:\Users\admin\AppData\Local\Temp\RtmpGYlz5L/downloaded_packages/ROracle_1.3-1.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\admin\AppData\Local\Temp\RtmpGYlz5L\downloaded_packages’
我已經安裝了Rtools Rtools33.exe安裝rpackage Roracle和我的[R版本version.string R版本3.3.2(2016-10-31) 請幫助將其與oracle 11g數據庫連接
Oracle客戶端安裝在d驅動器中,其路徑爲: D:\ app \ admin \ product \ 11.2.0 \ client_1 \ BIN
考慮使用Rtools34而不是33,但我不知道這會解決您的問題。爲此,您是否嘗試過設置'Sys.setenv(OCI_LIB64 =「d:/app/admin/product/11.2.0/client_1/BIN」)? – r2evans
我試過了,但同樣的錯誤信息來了,我已經把rtool從33更改爲34 – ashish
我還沒有得到這個工作我自己,但我被引導到[這些指示](https://cran.r-project .ORG /網絡/包/ ROracle/INSTALL)。 –