2012-09-10 30 views
0

我想,使用R 2.15.1編譯Windows下1.1-4的ROracle包版本和Rtools 2.15ROracle安裝失敗使用Rtools 2.15

install.packages('ROracle',type='source') 

[R 2.15.1但似乎ocimingw.c是缺失(見下面的輸出)。我使用R CMD INSTALL --build得到相同的錯誤信息。

編輯2012-09-11:問題顯然是特定於1.1-4,因爲我設法正常構建和安裝1.1-1。

任何想法解決方案可能是什麼?

trying URL 'http://stat.ethz.ch/CRAN/src/contrib/ROracle_1.1-4.tar.gz' 
Content type 'application/x-gzip' length 156924 bytes (153 Kb) 
opened URL 
downloaded 153 Kb 

* installing *source* package 'ROracle' ... 
** package 'ROracle' successfully unpacked and MD5 sums checked 
looking for Instant Client c:/instantclient/x64/instantclient_11_2 
cygwin warning: 
    MS-DOS style path detected: C:\instantclient\x64\instantclient_11_2 
    Preferred POSIX equivalent is: /cygdrive/c/instantclient/x64/instantclient_11_2 
    CYGWIN environment variable option "nodosfilewarning" turns off this warning. 
    Consult the user's guide for more details about POSIX paths: 
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames 
found Instant Client C:\instantclient\x64\instantclient_11_2 
found Instant Client SDK c:/instantclient/x64/instantclient_11_2/sdk/include 
generating ocimingw.lib from ocimingw.def 
x86_64-w64-mingw32-dlltool: not found 
copying from c:/instantclient/x64/instantclient_11_2/sdk/include 
** libs 
Warning: this package has a non-empty 'configure.win' file, 
so building only the main architecture 

cygwin warning: 
    MS-DOS style path detected: C:/R/R-215~1.1/etc/x64/Makeconf 
    Preferred POSIX equivalent is: /cygdrive/c/R/R-215~1.1/etc/x64/Makeconf 
    CYGWIN environment variable option "nodosfilewarning" turns off this warning. 
    Consult the user's guide for more details about POSIX paths: 
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames 
gcc -m64 -I"C:/R/R-215~1.1/include" -DNDEBUG -I./oci -I"d:/RCompile/CRANpkg/extralibs64/local/include"  -O2 -Wall -std=gnu99 -mtune=core2 -c rodbi.c -o rodbi.o 
rodbi.c: In function 'rociResExec': 
rodbi.c:1169:14: warning: unused variable 'drv' [-Wunused-variable] 
rodbi.c: In function 'rociResFetch': 
rodbi.c:1187:16: warning: unused variable 'drv' [-Wunused-variable] 
rodbi.c: In function 'rociResInfo': 
rodbi.c:1256:16: warning: unused variable 'drv' [-Wunused-variable] 
rodbi.c: In function 'rociResTerm': 
rodbi.c:1323:14: warning: unused variable 'drv' [-Wunused-variable] 
rodbi.c: In function 'rodbiCheck': 
rodbi.c:2348:25: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/stdio.h:505:15: note: expected 'char * restrict' but argument is of type 'text *' 
rodbi.c: In function 'rawToStrhexCall': 
rodbi.c:2573:7: warning: pointer targets in passing argument 1 of 'Rf_mkChar' differ in signedness [-Wpointer-sign] 
C:/R/R-215~1.1/include/Rinternals.h:628:6: note: expected 'const char *' but argument is of type 'unsigned char *' 
rodbi.c:2557:26: warning: unused variable 'seglen' [-Wunused-variable] 
rodbi.c: In function 'rociResInit': 
rodbi.c:1121:3: warning: 'qry_encoding' may be used uninitialized in this function [-Wuninitialized] 
gcc -m64 -I"C:/R/R-215~1.1/include" -DNDEBUG -I./oci -I"d:/RCompile/CRANpkg/extralibs64/local/include"  -O2 -Wall -std=gnu99 -mtune=core2 -c rooci.c -o rooci.o 
In file included from C:/R/R-215~1.1/include/R.h:44:0, 
       from rodbi.h:37, 
       from rooci.c:47: 
C:/R/R-215~1.1/include/R_ext/RS.h:43:0: warning: "ERROR" redefined [enabled by default] 
c:\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/wingdi.h:70:0: note: this is the location of the previous definition 
rooci.c: In function 'roociInitializeRes': 
rooci.c:620:32: warning: 'cnvcid' may be used uninitialized in this function [-Wuninitialized] 
gcc -m64 -shared -s -static-libgcc -o ROracle.dll tmp.def rodbi.o rooci.o -L. ocimingw.lib -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/R/R-215~1.1/bin/x64 -lR 
gcc.exe: error: ocimingw.lib: No such file or directory 
ERROR: compilation failed for package 'ROracle' 
* removing 'C:/R/R-2.15.1/library/ROracle' 
+0

也許你也可以在Oracle R討論論壇上提問你的問題:https://forums.oracle.com/forums/forum.jspa?forumID=1397。本月安裝了ROracle 1.1-4時,我遇到了類似的問題。 – jwijffels

+0

@ jwijffels您能否介紹一下我們的更多細節?我會將問題發佈到您提到的論壇,但有更多的細節肯定會有所幫助 –

回答

0

ROracle是很容易的從源代碼在Windows中安裝,如果你想使用ROracle從源代碼嘗試使用Linux,這裏是my install log

如果仍然使用windows,可以從Oracle獲得一個編譯好的ROracle包,它包含在「客戶端支持包」中。

+0

感謝您的建議,但顯然這是一個版本不兼容問題,正如我編輯中提到的 - ROracle確實支持Windows,但有點痛苦的安裝 –

+0

是的,它仍然可以在Windows中使用ROracle,我只是更新我的答案:-) –

0

這個問題顯然特定於1.1-4,因爲我設法正常構建和安裝1.1-1。在我再次嘗試之前,我會等待1.1-5版本。感謝所有貢獻者!