Home > Archive > PHP Installation > May 2007 > Re: [PHP-INSTALL] pdo_mysql can not find libmysqlclient.so libz.so
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PHP-INSTALL] pdo_mysql can not find libmysqlclient.so libz.so
|
|
| Graham Frank 2007-05-09, 7:02 pm |
| Actually, check the two files it claims are missing. Typically, those =20
files are actually symbolic links (e.g. /usr/lib/libmysqlclient.so -> =20
/usr/lib/libmysqlclient.so.14) and same for libz.
--Graham Frank
----------------------------------------------------------------------------=
----
Graham Frank
(608) 359-1593
Neoservers LLC (http://www.neoservers.com/)
Founder and Owner
Quoting Roland Cruse <roland.cruse@vrs-soft.com>:
>
> Hi
>
> I am having trouble installing/generating a shared pdo_mysql.
>
> Php-5.2.1/php-5.2.2
> mysql Ver 14.13 Distrib 5.1.17-beta, official mysql rpm install
> =09mysqladmin variables: basedir /
> ...
> ./configure \
> --with-curl \
> --with-apxs2=3D/usr/local/apache2/bin/apxs \
> --with-zlib-dir=3D/usr/local/include \ --with-zib \ --with-mysql=3D/usr \
> --enable-pdo=3Dshared \ --with-pdo-mysql=3Dshared,/usr \
> --with-pdo-sqlite=3Dshared \ --with-sqlite=3Dshared \ --enable-mbstring \
> --enable-wddx \ --enable-soap \ --enable-calendar \ --enable-bcmath \
> --enable-ftp \ --enable-xmlrpc \ --with-config-file-path=3D/etc \
> --with-xsl=3D/usr/local \ --with-imap-ssl \
> --with-imap=3D/usr/local/src/imap-2006c \ --with-gd \
> --with-t1lib=3D/usr/include \ --enable-gd-native-ttf \ --with-ttf=3D/usr/l=
ib
> \ --with-jpeg-dir=3D/usr/local/src/jpeg-6b/ \ --with-png \
> --with-png-dir=3D/usr/local/src/libpng-1.2.8 \
> --with-freetype-dir=3D/usr/lib \ --with-openssl \
> --with-openssl-dir=3D/usr/local/ssl \ --with-mcrypt \
> --with-pfpro=3Dshared,/verisign/payflowpro/linuxrh9 \ --with-ldap \
> --with-ldap-sasl=3D/usr/include/sasl \ --with-ldap-sasl \
> --with-mssql=3D/usr/local/freetds \ --enable-pcntl \ ...
>
> The configure script runs with no errors.
>
> "make" chokes here.
>
> gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory
> gcc: /usr/lib/mysql/libz.so: No such file or directory
> make: *** [ext/pdo_mysql/pdo_mysql.la] Error 1
>
> Even though:
> /usr/local/src/php-5.2.2 # locate libmysqlclient.so
> /usr/lib/libmysqlclient.so
>
> /usr/local/src/php-5.2.2 # locate libz.so /usr/lib/libz.so
>
>
> ****************************************
*************************
>
> IMPORTANT NOTICE
>
> The information in this e-mail and any attached files is =20
> CONFIDENTIAL and may be legally privileged or prohibited from =20
> disclosure and unauthorized use. The views of the author may not =20
> necessarily reflect those of the Company. This communication is =20
> intended solely for the addressee, or the employee or agent =20
> responsible for delivering such materials to the addressee. If you =20
> have received this message in error please return it to the sender =20
> then delete the email and destroy any copies of it. If you are not =20
> the intended recipient, any form of reproduction, dissemination, =20
> copying, disclosure, modification, distribution and/or publication =20
> or any action taken or omitted to be taken in reliance upon this =20
> message or its attachments is prohibited and may be unlawful.
>
> At present the integrity of e-mail across the Internet cannot be =20
> guaranteed and messages sent via this medium are potentially at =20
> risk. All liability is excluded to the extent permitted by law for =20
> any claims arising as a result of the use of this medium to transmit =20
> information by or to VillaDirect Management LLC.
>
| |
| Roland Cruse 2007-05-09, 7:02 pm |
|
>
>Actually, check the two files it claims are missing. Typically, those
>files are actually symbolic links (e.g. /usr/lib/libmysqlclient.so ->
>/usr/lib/libmysqlclient.so.14) and same for libz
>
>--Graham Frank
Thanks. I did not realize they where links.
I checked and the "missing" files (links) do point to existing files.
lrwxrwxrwx 1 root root 24 May 9 14:00 /usr/lib/libmysqlclient.so
-> libmysqlclient.so.15.0.0
lrwxrwxrwx 1 root root 24 May 9 14:00
/usr/lib/libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
-rwxr-xr-x 1 root root 224606 Feb 26 08:18
/usr/lib/libmysqlclient.so.10.0.0
lrwxrwxrwx 1 root root 24 May 9 14:00
/usr/lib/libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
-rwxr-xr-x 1 root root 306483 Feb 26 08:18
/usr/lib/libmysqlclient.so.12.0.0
lrwxrwxrwx 1 root root 24 May 9 14:00
/usr/lib/libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
-rwxr-xr-x 1 root root 1265956 Feb 26 08:18
/usr/lib/libmysqlclient.so.14.0.0
lrwxrwxrwx 1 root root 24 May 9 14:00
/usr/lib/libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
-rwxr-xr-x 1 root root 1437860 Feb 26 08:18
/usr/lib/libmysqlclient.so.15.0.0
And the same with the libz.=20
The "make" script seems to be looking in /usr/lib/mysql for the missing
files. When they do exist in /usr/lib These files appear to have come
from the MySQL-shared-compat rpm.
>
>-----------------------------------------------------------------------
----[color=darkred]
>-----
>Graham Frank
>(608) 359-1593
>Neoservers LLC (http://www.neoservers.com/)
>Founder and Owner
>
>
>Quoting Roland Cruse <roland.cruse@vrs-soft.com>:
>
--with-mysql=3D/usr \[color=darkred]
--enable-mbstring \[color=darkred]
--with-ttf=3D/usr/lib[color=darkred]
****************************************
*************************
IMPORTANT NOTICE
The information in this e-mail and any attached files is CONFIDENTIAL =
and may be legally privileged or prohibited from disclosure and =
unauthorized use. The views of the author may not necessarily reflect =
those of the Company. This communication is intended solely for the =
addressee, or the employee or agent responsible for delivering such =
materials to the addressee. If you have received this message in error =
please return it to the sender then delete the email and destroy any =
copies of it. If you are not the intended recipient, any form of =
reproduction, dissemination, copying, disclosure, modification, =
distribution and/or publication or any action taken or omitted to be =
taken in reliance upon this message or its attachments is prohibited and =
may be unlawful.
At present the integrity of e-mail across the Internet cannot be =
guaranteed and messages sent via this medium are potentially at risk. =
All liability is excluded to the extent permitted by law for any claims =
arising as a result of the use of this medium to transmit information by =
or to VillaDirect Management LLC.
| |
|
|
|
|
|