[英]how to install r package for oracle on windows 10 64 bit
while installing rpackage Roracle on windows 10 i'm getting stuck at this point在 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’
I've installed Rtools Rtools33.exe and my R version is version.string R version 3.3.2 (2016-10-31) please help to connect it with oracle 11g database我已经安装了 Rtools Rtools33.exe,我的 R 版本是 version.string R version 3.3.2 (2016-10-31) 请帮忙连接 oracle 11g 数据库
Oracle client is intalled in d drive which path is: D:\\app\\admin\\product\\11.2.0\\client_1\\BIN Oracle客户端安装在d盘,路径为:D:\\app\\admin\\product\\11.2.0\\client_1\\BIN
As @Nathan Dobie mentionned, instructions on the ROracle installation were helpful for me.正如@Nathan Dobie 所提到的,关于 ROracle 安装的说明对我很有帮助。 I didn't need Rtools.exe but i had to add oracle instant client in the Environment variables.我不需要 Rtools.exe,但我必须在环境变量中添加 oracle 即时客户端。
Configuration in 64bits: 64位配置:
And you will also need to create OCI_INC with the following value D:\\app\\admin\\product\\11.2.0\\client_1\\oci\\include您还需要使用以下值创建 OCI_INC D:\\app\\admin\\product\\11.2.0\\client_1\\oci\\include
Worked very well for me :-)对我来说效果很好:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.