On Thu, 27 Sep 2001 08:56, Rob Walker wrote:
> Hi there....
> I am new to Linux and PHP.
> I was installing PHP onto my 400MHz Pentium PC, running Red Hat Linux
> (and DOS on another partition) with a MySQL database and an Apache web
> server but there was a problem. Please can you help....the contents of
> the debug log are below. (Thanks to David Robley for letting me know
> that attachments get stripped.) Thanks in advance for your help.
> Best regards
> Rob
> email: [EMAIL PROTECTED]
>
>
> CONFIGURE:   './configure'
> '--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/'
> '--with-apxs=/usr/local/apache_1.3.12/bin/apxs' CC:         gcc
> CFLAGS:     -g -O2
> CPPFLAGS:
> CXX:
> CXXFLAGS:
> INCLUDES:    -I/usr/local/apache_1.3.12/include  -I$(top_builddir)/Zend
> -I$(top_srcdir)  -I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include
> LDFLAGS:    
> -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql LIBS:      
> -lmysqlclient -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv
> DLIBS:
> SAPI:       apache
> PHP_RPATHS:  /usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> uname -a:   Linux localhost.localdomain 2.2.16-22 #1 Tue Aug 22
> 16:49:06 EDT 2000 i686 unknown
>
> gcc -o conftest -g -O2  
> -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
> -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql conftest.c
> -lmysqlclient -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv
> 1>&5 /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status

Obviously, it's not finding the mysql client library (libmysqlclient) in 
the place its told to look, 
usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql.

However, that seems an odd location. Perhaps something about default 
locations in DeadRat? In the first instance, if you aren't using 
_anything_ else that requires the mysql client library, try recompiling 
using just the 

--with-mysql

flag, without a path, to use the inbuilt (in PHP) mysql client.

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   The ultimate reason is "because."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to