470,608 Members | 2,337 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,608 developers. It's quick & easy.

Compiling issues

I'm having issues compiling php v4.2.2 on Redhat 9.0. The goal
ultimately is to compile in mcrypt support, but that's a bit down the
road from here. I've chased down the dependencies for the configure
options below (I think), but it still won't configure.

It appears to be choking on MySql (v3.23.54). The error I get is
something like:

/usr/bin/ld : cannot find -lmysqlclient

However, /etc/ls.so.conf appears to point to the correct directory:
/usr/bin/mysql, the contents of which are listed below.

Any help will be greatly appreciated.

Configure options:

--host=i386-redhat-linux --build=i386-redhat-linux
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --cache-file=../config.cache
--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
--enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath
--enable-inline-optimization --with-bz2 --with-db3 --with-curl
--with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr
--with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf
--with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv
--with-jpeg-dir=/usr --with-openssl --with-png --with-regex=system
--with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU
--enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes
--enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp
--enable-wddx --without-oci8 --with-pear=/usr/share/pear
--with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr


configure:40115: checking for mysql_error in -lmysqlclient
configure:40134: gcc -o conftest -g -O2
-L/usr/lib -L/usr/lib/mysql
-Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c
t -lgmp -lgd -lfreetype -lpng -lz -ljpeg -lz -lm -lz -lxml2 -ldb -lgdbm
-lcrypto -lssl -lz -ldl -lresolv -lcom_err -lk5crypto -lkrb5
-lgssapi_krb5 -lcry
pto -lssl -lcurl -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl
-lnsl -lres
olv -lcrypt 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 40123 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();

int main() {
; return 0; }

Contents of /usr/lib/mysql


Jul 17 '05 #1
0 1641

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by smjmitchell | last post: by
5 posts views Thread by Jo Vermeulen | last post: by
reply views Thread by Johnathan Doe | last post: by
reply views Thread by pruebauno | last post: by
5 posts views Thread by Gregor KovaŤ | last post: by
1 post views Thread by Vijay Jain | last post: by
37 posts views Thread by Michael Palmer | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.