[R] RMySQL_5.2 SuSE9.0

Marlene Mueller marlene.mueller at gmx.de
Thu Nov 20 18:35:29 CET 2003


My guess is that gcc cannot find libz, which most
likely means that you do not have installed the
development version of it. Search for libz or zlib
in yast2.

Hope that helps, Marlene



Christian Schulz wrote:
> Hi,
> i try to install, but getting no success.
> What this mean cannot find -lz , any necessary 
> lib left in my SuSE Installation?
> 
> Many thanks, Christian
> 
> 
> linux:/usr/lib/R/bin # R CMD  INSTALL RMySQL_0.5-2.tar.gz
> * Installing *source* package 'RMySQL' ...
> creating cache ./config.cache
> checking how to run the C preprocessor... cc -E
> checking for mysql_init in -lmysqlclient... yes
> checking for mysql.h... no
> checking for /usr/local/include/mysql/mysql.h... no
> checking for /usr/include/mysql/mysql.h... yes
> updating cache ./config.cache
> creating ./config.status
> creating src/Makevars
> ** libs
> gcc -I/usr/lib/R/include -I/usr/include/mysql -I/usr/local/include -D__NO_MATH_INLINES -mieee-fp  -fPIC   -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   -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 -L/usr/lib/R/bin -lR
> /usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make: *** [RMySQL.so] Error 1
> ERROR: compilation failed for package 'RMySQL'
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 
> 

-- 
PD Dr. Marlene Müller
Fraunhofer ITWM Kaiserslautern, Abt. Finanzmathematik
mailto:Marlene.Mueller at itwm.fhg.de, Tel/Fax: +49 631 205 4189/4139
http://www.itwm.fhg.de/de/fm__employees__mueller/mueller/




More information about the R-help mailing list