[R] FW: ROracle error
Vikram Khurana
Vikram.Khurana at noaa.gov
Sat Aug 10 04:12:44 CEST 2002
Thanks David,
I was able to get past the proc problems. However now I'm stuck on
another problem. Hope you can point me in the right direction here too.
My pcscfg.cfg file in $ORACLE_HOME/precomp/admin/pcscfg.cfg
looks as follows:
sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/,/usr/include)
include=($ORACLE_HOME/precomp/public)
include=($ORACLE_HOME/rdbms/demo)
include=($ORACLE_HOME/network/public)
include=($ORACLE_HOME/plsql/public)
ltype=short
The error message on executing R CMD INSTALL ROracle_0.3-3.tar.gz logged
in as root is as follows:
R CMD COMPILE RS-DBI.c
make[1]: Entering directory `/tmp/R.INSTALL.6290/ROracle/src'
gcc -I/usr/lib/R/include -I/usr/local/include -D__NO_MATH_INLINES -mieee-fp -fPIC -O2 -m486 -fno-strength-reduce -g -c RS-DBI.c -o RS-DBI.o
make[1]: Leaving directory `/tmp/R.INSTALL.6290/ROracle/src'
proc CODE=ANSI_C INCLUDE=/usr/lib/R/include PARSE=FULL RS-Oracle.pc
Pro*C/C++: Release 8.1.7.0.0 - Production on Fri Aug 9 16:06:51 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System default option values taken from: /home/oracle/OraHome1/precomp/admin/pcscfg.cfg
Error at line 36, column 10 in file /usr/lib/R/include/S.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 33, column 10 in file /usr/include/stdlib.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Syntax error at line 133, column 15, file /usr/include/stdlib.h:
Error at line 133, column 15 in file /usr/include/stdlib.h
extern size_t __ctype_get_mb_cur_max (void) __THROW;
..............1
PCC-S-02201, Encountered the symbol "__ctype_get_mb_cur_max" when expecting one
of the following:
; , = ( [
The symbol ";" was substituted for "__ctype_get_mb_cur_max" to continue.
& on & on
I know this is really a Pro C problem & not a R problem, but I'm hoping
somebody in this list might still be able to help me...
Thanks,
Vikram
David James wrote:
>Hello Vikram,
>
>(I did respond to you yesterday's email from vkhurana at noaa.gov, but
>apparantly noaa.gov doesn't recognize your handle vkhurana.)
>
>Apparently you don't have the Oracle ProC/C++ precomplier "proc"
>in your $PATH. You need to include $ORACLE_HOME/bin in your $PATH,
>and probably $ORACLE_HOME/lib in your $LD_LIBRARY_PATH. See the
>files INSTALL, README, and README.client in the source distribution
>(they'll be in the "inst" directory under "ROracle" after you untar
>the source file ROracle_0.3-3.tar.gz).
>
>Regards,
>--
>David
>
>Vikram Khurana wrote:
>
>>Howdy,
>>
>>When doing a
>>install.packages("ROracle") in R I'm getting the following error:
>>
>>R CMD COMPILE RS-DBI.c
>>make[1]: Entering directory `/tmp/R.INSTALL.1809/ROracle/src'
>>gcc -I/usr/lib/R/include -I/usr/local/include -D__NO_MATH_INLINES
>>-mieee-fp -fPIC -O2 -m486 -fno-strength-reduce -g -c RS-DBI.c -o
>>RS-DBI.o
>>make[1]: Leaving directory `/tmp/R.INSTALL.1809/ROracle/src'
>>proc CODE=ANSI_C INCLUDE=/usr/lib/R/include PARSE=FULL
>>RS-Oracle.pc
>>make: proc: Command not found
>>make: *** [RS-Oracle.c] Error 127
>>ERROR: compilation failed for package 'ROracle'
>>
>>
>>I've tried this on 2 different RH 7.3 LINUX boxes with no luck. I also
>>searched the R search engine and google with no luck. Can someone please
>>
>>point me in the right direction as to if I'm doing something wrong?
>>
>>Thanks,
>>Vikram
>>
>>
>>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>>r-help mai
>>ling list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
>>Send "info", "help", or "[un]subscribe"
>>(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
>>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>
>
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
>Send "info", "help", or "[un]subscribe"
>(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list