problems compiling R packages with Linux
Hello out there, my first try to install a package (e.g. ctest from CRAN) didn't succeed; looking at the error messages I think it must be a configuration problem of my machine, but as I'm not very experienced I would be glad if someone could give me a hint ... R's version is 0.63.0, my i386-Linux is kernel 2.0.35. I hadn't had problems to compile R, and R itself seems to work. If I try to install the package by > R INSTALL /usr/local/share/R/library/ctest/ I get a lot of error messages. R is installed in /usr/local/share/R, and I untar'ed the package in the library directory. I have write permissions for those directories. Apparently the linker cannot find a "main" module file or a certain (shared?) library. Some -lxxx missing on compiler's command line? Installing package `ctest' ... libs make: `fexact.o' is up to date. ld: warning: cannot find entry symbol _start; defaulting to 08048280 fexact.o: In function `fexact': /usr/local/share/R/library/ctest/src/fexact.c:160: undefined reference to `calloc' /usr/local/share/R/library/ctest/src/fexact.c:290: undefined reference to `free' fexact.o: In function `f2xact': /usr/local/share/R/library/ctest/src/fexact.c:503: undefined reference to `log' /usr/local/share/R/library/ctest/src/fexact.c:505: undefined reference to `log' [...] fexact.o: In function `alogam': /usr/local/share/R/library/ctest/src/fexact.c:2229: undefined reference to `log' /usr/local/share/R/library/ctest/src/fexact.c:2232: undefined reference to `log' /usr/lib/libblas.so: undefined reference to `strcpy' /usr/lib/libblas.so: undefined reference to `sqrt' /usr/lib/libblas.so: undefined reference to `times' /usr/lib/libblas.so: undefined reference to `__ctype_b' /usr/lib/libblas.so: undefined reference to `errno' /usr/lib/libblas.so: undefined reference to `__strtol_internal' /usr/lib/libblas.so: undefined reference to `_IO_stdout_' [...] I hope there is a kind soul who can help a little bit ;-) Many thanks, Ulf ---------------------------------------------------------------------- P.S.: g77 -v yields g77 version 0.5.22 gcc -v -fnull-version -o /tmp/gfa11201 -xf77-cpp-input /tmp/gfa11201.f -xnone -lf2c -lm Reading specs from /usr/lib/gcc-lib/i486-delix-linux/2.7.2.3/specs gcc version 2.7.2.3 /usr/lib/gcc-lib/i486-delix-linux/2.7.2.3/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D_LANGUAGE_FORTRAN -traditional -D__i486__ /tmp/gfa11201.f /tmp/cca11202.i GNU CPP version 2.7.2.3 (i386 Linux/ELF) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/i486-delix-linux/include /usr/lib/gcc-lib/i486-delix-linux/2.7.2.3/include /usr/include End of search list. /usr/lib/gcc-lib/i486-delix-linux/2.7.2.3/f771 /tmp/cca11202.i -fset-g77-defaults -quiet -dumpbase gfa11201.F -version -fversion -fnull-version -o /tmp/cca11202.s GNU F77 version 2.7.2.3 (i386 Linux/ELF) compiled by GNU C version 2.7.2.3. GNU Fortran Front End version 0.5.22 compiled: Mar 29 1998 22:48:35 as -V -Qy -o /tmp/cca112021.o /tmp/cca11202.s GNU assembler version 2.9.1 (i686-pc-linux-gnulibc1), using BFD version 2.9.1.0.7 ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -o /tmp/gfa11201 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib/gcc-lib/i486-delix-linux/2.7.2.3 /tmp/cca112021.o -lf2c -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o __G77_LIBF77_VERSION__: 0.5.22 @(#)LIBF77 VERSION 19970919 __G77_LIBI77_VERSION__: 0.5.22 @(#) LIBI77 VERSION pjw,dmg-mods 19970916 __G77_LIBU77_VERSION__: 0.5.22 @(#) LIBU77 VERSION 19970919
======================================================================
Ulf Mehlig <umehlig at zmt.uni-bremen.de>
Center for Tropical Marine Ecology/ZMT, Bremen, Germany
----------------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._