I am trying to compile MySQL 4.x on a Red Hat 8.0 but I'm getting the
following error
/usr/bin/ld: cannot find -lreadline
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/usr/src/mysql/mysql-4.0.16/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mysql/mysql-4.0.16'
make: *** [all] Error 2
The mysql compilation options are as follows
CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \
CFLAGS="-O3" CC=gcc CXX=gcc ./configure --prefix=/usr \
--localstatedir=/var/lib/mysql \
--with-extra-charsets=none \
--without-bench \
--without-debug \
--without-readline \
--with-mysqld-user=mysql \
--enable-assembler \
--enable-thread-safe-client \
--with-client-ldflags=-all-static
Any ideas on what is wrong or missing?
Luis R. Lebron
Project Manager
Sigmatech, Inc