2017-03-08 5 views
0

während der Installation rpackage Roracle auf Windows 10 installieren iwie r Paket für Oracle auf Windows 10 64-Bit-

 
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’ 

Ich habe installiert RTools Rtools33.exe und meine R an dieser Stelle stecken bin immer Version version.string R Version 3.3.2 (2016.10.31) bitte helfen sie mit Oracle 11g-Datenbank zu verbinden

Oracle-Client in d-Laufwerk intalled ist, welchen Weg ist: D: \ app \ admin \ Produkt \ 11.2.0 \ client_1 \ BIN

+1

Betrachten Sie Rtools34 anstelle von 33, obwohl ich nicht weiß, dass dies Ihr Problem lösen wird. Haben Sie dazu versucht, 'Sys.setenv (OCI_LIB64 =" d: /app/admin/product/11.2.0/client_1/BIN ")' zu setzen? – r2evans

+0

Ich habe das gleiche versucht, aber derselbe Fehler msg kommt, ich habe rtool von33 auf 34 geändert. – ashish

+1

Ich habe das nicht selbst zur Arbeit gebracht, aber ich wurde zu [dieser Anleitung] weitergeleitet (https: //cran.r-project .org/web/packages/ROracle/INSTALL). –

Antwort

0

Wie @Nathan Dobie Männer Die Anweisungen zur Installation von ROracle waren hilfreich für mich. Ich brauchte Rtools.exe nicht, aber ich musste Orakel sofortigen Klienten in den Umgebungsvariablen hinzufügen.

Konfiguration in 64bits:

  • unter Systemvariablen erstellen OCI_LIB64, wenn es nicht bereits vorhanden ist. Setzen Sie den Wert von OCI_LIB64 auf D: \ app \ admin \ product \ 11.2.0 \ client_1 \ BIN (in Ihrem Fall)
  • Bearbeiten Sie unter Systemvariablen PATH, um D: \ app \ admin \ product \ 11.2 einzuschließen .0 \ client_1 \ BIN

Und Sie müssen auch OCI_INC mit dem folgenden Wert D erstellen: \ app \ admin \ product \ 11.2.0 \ client_1 \ OCI \ include

funktionierte sehr gut für mich :-)