在Windows 10上安装rpackage Roracle时,我现在卡住了
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,我的R版本是version.string R版本3.3.2(2016-10-31) 请帮助将其与oracle 11g数据库连接
Oracle客户端安装在d盘中,其路径为: d:\应用\管理员\产品\ 11.2.0 \的Client_1 \ BIN
答案 0 :(得分:0)
正如@Nathan Dobie所提到的,关于ROracle安装的说明对我有帮助。我不需要Rtools.exe,但我不得不在环境变量中添加oracle即时客户端。
64位配置:
您还需要使用以下值创建OCI_INC d:\应用\管理员\产品\ 11.2.0 \的Client_1 \ OCI \包括
对我来说非常好: - )