[R] installing RMySQL

Joerg Schaber Joerg.Schaber at uv.es
Wed Apr 7 12:47:02 CEST 2004


Hi,

I have problems installing RMySQL under R1.8.1 and RHlinux (kernel2.4.7).
During compilation I get:
** libs
gcc -I/usr/lib/R/include -I/usr/include/mysql -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
gcc -I/usr/lib/R/include -I/usr/include/mysql -I/usr/local/include 
-D__NO_MATH_INLINES -mieee-fp  -fPIC  -O2 -m486 -fno-strength-reduce -g 
-c RS-MySQL.c -o RS-MySQL.o
gcc -shared -L/usr/local/lib -o RMySQL.so RS-DBI.o RS-MySQL.o 
-lmysqlclient -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [RMySQL.so] Error 1
ERROR: compilation failed for package 'RMySQL'

Do I possibly have to upgrade gcc or ld?
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)

Thanks,

joerg




More information about the R-help mailing list