I am attempting to build mysql++ on a Fedora Core 2 machine. The following rpms
have been installed:
mysql++-1.7.32-1
mysql-devel-3.23.58-9
mysql-3.23.58-9
mysql-server-3.23.58-9
php-mysql-4.3.4-11
mysql++-devel-1.7.32-1
MySQL-shared-3.23.58-1
I have to stay with MYSQL version 3.23.58 due to the existing installbase.
The configure.h file that is generated states that I do not have support for
zlib, however, I do, as the "rpm -qa" shows below.
rpm -qa | grep zlib*
zlib-1.2.1.1-2.1
The make process fails to complete because ld can't find -lz.
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[2]: *** [libmysqlpp.la] Error 1
make[2]: Leaving directory `/home/insite/temp/mysql++-1.7.32/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/insite/temp/mysql++-1.7.32'
make: *** [all] Error 2
I attempted to show "configure" where the zlib.h file is by adding an
"--includedir" option but this did not help.
./configure '--includedir=/usr/local/include/mysql++'
'--includedir=/lib/modules/2.6.5-1.358/build/include/linux/'
--enable-thread-check
Any suggestions?