Re: fix error
| From: | John Coder | Date: | Fri, 07 Feb 2003 00:38:42 +0000 |
| Subject: | Re: fix error | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-9979@lists.php.net to get a copy of this message | ||
On Thu, 2003-02-06 at 18:25, Khayssam AK wrote:
> Dears,
> I'm unable to fix this error
> Best regards,
> Khayssam AK
> ----
>
> CONFIGURE: './configure'
> '--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/'
> '--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
It would appear this is where your error lays. notice in your LDFLAGS below
it reads ,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
you have an extrea slash therefore it can't find the mysqlclient. the
fix would be in your configure lose thew last slash on --with-mysql so
it reads
'./configure' '--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686'
'--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
John Coder
> 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.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386
> GNU/Linux
>
> 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
>
>