Dear all, I have an error message installing SJava package. So I searched web site(google) and R-mailing list to find a similar error message. But I couldn't find it. I installed R-2.1.1 like this on Fedora Core4 1) /configure --enable-R-shlib --with-libpng --with-jpeglib 2) make -> make check -> make install and then issuing on shell prompt (red lines are error messages) R CMD INSTALL -c /usr/local/src/R/SJava_0.68-0.tar.gz * Installing *source* package 'SJava' ... checking for java... /usr/java/jdk1.5.0_04//bin/java Java VM /usr/java/jdk1.5.0_04//bin/java checking for javah... /usr/java/jdk1.5.0_04//bin/javah Looking in /usr/java/jdk1.5.0_04/include Looking in /usr/java/jdk1.5.0_04/include/linux checking for g++... g++ checking for C++ compiler default output... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for Rf_initEmbeddedR in -lR... no No R shared library found configure: creating ./config.status config.status: creating Makevars config.status: creating src/Makevars config.status: creating src/RSJava/Makefile config.status: creating Makefile_rules config.status: creating inst/scripts/RJava.bsh config.status: creating inst/scripts/RJava.csh config.status: creating R/zzz.R config.status: creating cleanup config.status: creating inst/scripts/RJava Copying the cleanup script to the scripts/ directory Building libRSNativeJava.so in /tmp/R.INSTALL.tf2988/SJava/src/RSJava if test ! -d /usr/local/lib/R/library/SJava/libs ; then \ mkdir /usr/local/lib/R/library/SJava/libs ; \ fi gcc -g -O2 -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -c CtoJava.c CtoJava.cweb:215: error: static declaration of 'std_env' follows non-static declaration CtoJava.cweb:195: error: previous declaration of 'std_env' was here make: *** [CtoJava.o] Error 1 Generating JNI header files from Java classes. RForeignReference, RManualFunctionActionListener, ROmegahatInterpreter & REvaluator ************* Warning: At present, to use the library you must set the LD_LIBRARY_PATH environment variable to /usr/local/lib/R/library/SJava/libs:/usr/java/jdk1.5.0_04/jre/lib/i386/client:/usr/java/jdk1.5.0_04/jre/lib/i386:/usr/java/jdk1.5.0_04/jre/../lib/i386: or use one of the RJava.bsh or RJava.csh scripts ************* ** libs gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c ConverterExamples.c -o ConverterExamples.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c Converters.c -o Converters.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c REmbed.c -o REmbed.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c REmbedWin.c -o REmbedWin.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c REval.c -o REval.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c RFunctionListener.c -o RFunctionListener.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c RReferenceCall.c -o RReferenceCall.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c RStoJava.c -o RStoJava.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c Reflectance.c -o Reflectance.o gcc -I/usr/local/lib/R/include -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I. -I/tmp/R.INSTALL.tf2988/SJava/inst/include -IRSJava -I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux -I/usr/local/include -fPIC -g -O2 -c RtoJava.c -o RtoJava.o gcc -shared -L/usr/local/lib -o SJava.so ConverterExamples.o Converters.o REmbed.o REmbedWin.o REval.o RFunctionListener.o RReferenceCall.o RStoJava.o Reflectance.o RtoJava.o -L/tmp/R.INSTALL.tf2988/SJava/inst/libs -L/usr/java/jdk1.5.0_04/jre/lib/i386/client -L/usr/java/jdk1.5.0_04/jre/lib/i386 -L/usr/java/jdk1.5.0_04/jre/../lib/i386 -L/usr/local/lib/R/library/SJava/libs -lRSNativeJava -ljvm -L/usr/local/lib/R/lib -lR /usr/bin/ld: cannot find -lRSNativeJava collect2: ld returned 1 exit status make: *** [SJava.so] Error 1 ERROR: compilation failed for package 'SJava' ** Removing '/usr/local/lib/R/library/SJava' ** Restoring previous '/usr/local/lib/R/library/SJava' I wonder what's wrong. Thanks in advance, taemyong choi. --------------------------------------------------------------------- Taemyong Choi, tmhoi at ris.chonnam.ac.kr MA.D. Candidate Department of statistics, Tel: +82-62-530-0442 Chonnam National University, Fax: +82-62-530-3449 300, Yongbong-dong, Buk-gu,Gwangju, 500-757, KOREA