From: Michael Widenius Date: March 28 1999 7:58pm Subject: Linking libmysqlclient.so.6 to apache on Solaris 2.6 List-Archive: http://lists.mysql.com/mysql/1126 Message-Id: <14078.35082.43942.568487@monty.pp.sci.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>>>> "Luke" == Luke Kelty writes: Luke> Here is my OS: Luke> # uname -a Luke> SunOS server2 5.6 Generic_105182-11 i86pc i386 i86pc Luke> Here is my compiler Luke> # gcc -v Luke> Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs Luke> gcc version 2.8.1 Luke> Here is how I build mysql Luke> ./configure --with-gnu-ld -enable-shared=yes --prefix=/usr/local/mysql Luke> Now I am trying to add the mod_auth_mysql to apache. Luke> Here is my problem: Luke> .... Luke> ===> main Luke> gmake[1]: Entering directory `/public/install/apache_1.3.4/src/main' Luke> gcc -c -I../os/unix -I../include -I/usr/local/mysql/include/mysql -I/usr/local Luke> /mysql/include/mysql -DSOLARIS2=260 gen_test_char.c Luke> gcc -I/usr/local/mysql/include/mysql -DSOLARIS2=260 -L/usr/local/mysql/lib - Luke> o gen_test_char gen_test_char.o -lmysqlclient -lm -L/usr/local/mysql/lib/mysql - Luke> lmysqlclient -lsocket -lnsl Luke> ./gen_test_char >test_char.h Luke> ld.so.1: ./gen_test_char: fatal: libmysqlclient.so.6: open failed: No such file Luke> or directory Luke> Killed Luke> gmake[1]: *** [test_char.h] Error 137 Luke> gmake[1]: Leaving directory `/public/install/apache_1.3.4/src/main' Luke> gmake: *** [subdirs] Error 1 Luke> I have searched through the mail archives for the past few days. Luke> I don't know how to get apache to recognise this file. Luke> Can anyone help ? Hi! Fixes (one of): - Link with -Wl,r/full-path/libmysqlclient.so - Move libmysqlclient.so.* to /usr/lib - Reconfigure MySQL with: ./configure --disable-shared (This will compile MySQL without shared libraries). Regards, Monty