Hi all, I am wondering if anyone has problem installing 'knncat' package. I tried to install using 'Rcmd INSTALL knncat_1.1.1.tar.gz', error message appeared. I attached the message in the end. I allso tried to install from RGui, but it was not listed. Thanks in advance. Regards, jenny ---------- Making package knncat ------------ adding build stamp to DESCRIPTION making DLL ... making com.d from com.c making dodisc.d from dodisc.c making donn.d from donn.c making donnwrap.d from donnwrap.c making dsort.d from dsort.c making linpack.d from linpack.c making matrix.d from matrix.c making objective.d from objective.c making ords.d from ords.c making ranlib.d from ranlib.c making utilsR.d from utilsR.c gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c com.c -o com.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c dodisc.c -o dodisc.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c donn.c -o donn.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c donnwrap.c -o donnwrap.o donnwrap.c: In function `donnwrap': donnwrap.c:84: warning: passing arg 5 of `do_nn' from incompatible pointer type donnwrap.c:84: warning: passing arg 9 of `do_nn' from incompatible pointer type donnwrap.c:84: warning: passing arg 10 of `do_nn' from incompatible pointer type donnwrap.c:84: warning: passing arg 16 of `do_nn' from incompatible pointer type donnwrap.c:84: warning: passing arg 21 of `do_nn' from incompatible pointer type donnwrap.c:84: warning: passing arg 22 of `do_nn' from incompatible pointer type donnwrap.c:84: warning: passing arg 23 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 5 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 9 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 10 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 16 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 21 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 22 of `do_nn' from incompatible pointer type donnwrap.c:94: warning: passing arg 23 of `do_nn' from incompatible pointer type gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c dsort.c -o dsort.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c linpack.c -o linpack.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c matrix.c -o matrix.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c objective.c -o objective.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c ords.c -o ords.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c ranlib.c -o ranlib.o gcc -Ic:/R/rw1081/src/include -Wall -O2 -I . -pedantic -Wall -DUSE_R_ALLOC -DC ALL_FROM_R -c utilsR.c -o utilsR.o ar cr knncat.a *.o ranlib knncat.a windres --include-dir c:/R/rw1081/src/include -i knncat_res.rc -o knncat_res.o gcc --shared -s -o knncat.dll knncat.def knncat.a knncat_res.o -Lc:/R/rw1081/ src/gnuwin32 c:/R/rw1081/src/modules/lapack/libRlapack.a -lRblas -lg2c -lg2c -lR gcc.exe: c:/R/rw1081/src/modules/lapack/libRlapack.a: No such file or directory make[2]: *** [knncat.dll] Error 1 make[1]: *** [srcDynlib] Error 2 make: *** [pkg-knncat] Error 2 *** Installation of knncat failed ***
This is an error in the package. In file src/Makevars it has LAPACK_LIBS=$(R_HOME)/src/modules/lapack/libRlapack.a which is a reference to the R sources. That should not be there: please remove it and this may well work. However, your version of R is rather old, which is why you are not seeing a pre-compiled version. R 2.0.1 will be out this week, and please upgrade to it when all the current packages which compile under Windows will be available to you, pre-compiled. On Mon, 15 Nov 2004, Jenny Edmondson wrote:> Hi all, > > I am wondering if anyone has problem installing 'knncat' package. I tried to > install using 'Rcmd INSTALL knncat_1.1.1.tar.gz', error message appeared. I > attached the message in the end. I allso tried to install from RGui, but it > was not listed.[...]> gcc --shared -s -o knncat.dll knncat.def knncat.a knncat_res.o > -Lc:/R/rw1081/src/gnuwin32 c:/R/rw1081/src/modules/lapack/libRlapack.a-lRblas -lg2c -lg2c> -lR > > gcc.exe: c:/R/rw1081/src/modules/lapack/libRlapack.a: No such file or > directory-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595