Installing PHP and MySQL on RedHat 9.0
#1
Posted 27 December 2003 - 08:04 AM
I have been trying to install the MySql package on RH9.0 but have been unsuccessful so far. I need to use both php and Mysql for PostNuke
I get the following error.
[tools@localhost coe_downloads]$ rpm -ivh php-mysql-4.2.2-17.i386.rpm
warning: php-mysql-4.2.2-17.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
libmysqlclient.so.10 is needed by php-mysql-4.2.2-17
Then on downloading and installing the following packages I get the following error
[tools@localhost coe_downloads]$ rpm -ivh mysql-4.0.17 mod_auth_mysql-1.11-10 MySql-server-4.0 php-mysql-4.2.2-8.05 libdbi-dbd-mysql-0.6.5-2 mysql-devel-4.0 MySql-python-0.9.1-4 perl-DBD-MySql-2.1017-3 qt-MySQL-3.0.5-17
I get the following error:
mx is needed by MySQL-python-0.9.1-4
libmysqlclient.so.10 is needed by MySQL-python-0.9.1-4
libdbi = 0.6.5-2 is needed by libdbi-dbd-mysql-0.6.5-2
libmysqlclient.so.10 is needed by libdbi-dbd-mysql-0.6.5-2
libmysqlclient.so.10 is needed by mod_auth_mysql-1.11-10
qt = 1:3.0.5-17 is needed by qt-MySQL-3.0.5-17
libmysqlclient.so.10 is needed by qt-MySQL-3.0.5-17
libmysqlclient.so.10 is needed by perl-DBD-MySQL-2.1017-3
libmysqlclient.so.10 is needed by php-mysql-4.2.2-17
I am pretty new to linux so is there some version compatibilty problem?
#2
Posted 01 January 2004 - 04:52 AM
do this
updatedb locate libmysqlclient.so
If your version is older install a newer version, if your version is newer do this.
ln -s ../libmsqlclient.so.X ../libmysqlclient.so.10
What the ../ means is the PATH. and what you are doing is creating a sym link.
#3
Posted 06 January 2004 - 08:28 AM
if you don't have libmysqlclient.so, you can download it from
http//www.hklpg.org/RPM/sourceforge/mysql/MySQL-shared-3.23.51-1.i386.html
#4
Posted 06 January 2004 - 03:09 PM
#5
Posted 08 January 2004 - 11:40 AM
i am also in trouble updating mysql on RH9.0. Currently i use
> rpm -q mysql-server
mysql-server-3.23.58-1.9
I tried to rpm -Uvh MySQL-server-4.0.17-0.i386.rpm
and got also the message
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
libmysqlclient.so.10 does exist
> locate libmysqlclient.so.10
/usr/lib/mysql/libmysqlclient.so.10.0.0
/usr/lib/mysql/libmysqlclient.so.10
Should i "tell" rpm -Uvh where to find libmysqlclient. Btw why ...mysqlclient ? Should i install mysql-client also?
Thank you very much for your help
\hcq
#6
Posted 12 January 2004 - 07:57 PM
i am also in trouble updating mysql on RH9.0. Currently i use:
> rpm -q mysql-server
mysql-server-3.23.58-1.9
I tried to rpm -Uvh MySQL-server-4.0.17-0.i386.rpm
and got also the message:
libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
libmysqlclient.so.10 does exist:
> locate libmysqlclient.so.10
/usr/lib/mysql/libmysqlclient.so.10.0.0
/usr/lib/mysql/libmysqlclient.so.10
Should i "tell" rpm -Uvh where to find libmysqlclient. Btw why ...mysqlclient ? Should i install mysql-client also?
Thank you very much for your help
\hcq
Hi,
I have exactly the same problem as yours. Since PHP did not make the link with MySQL, I checked what was wrong. Probably PHP should be re-compiled. I have PHP as RPMs. So I first uninstalled the php-mysql RPM, which was done without any problem.
But then there is no way to install back that RPM :
> rpm -i php-mysql-4.2.2-8.0.5.i386.rpm
error: Failed dependencies:
libmysqlclient.so.10 is needed by php-mysql-4.2.2-8.0.5
And as for you I have :
> locate libmysqlclient.so
/usr/lib/mysql/libmysqlclient.so.10.0.0
/usr/lib/mysql/libmysqlclient.so.10
But in fact I have no such file in that directory.
> ls /usr/lib/mysql
libdbug.a libmyisam.a libmysqlclient.la libmystrings.a libvio.a
libheap.a libmyisammrg.a libmysqlclient_r.a libmysys.a mysqld.sym
libmerge.a libmysqlclient.a libmysqlclient_r.la libnisam.a
So I'm gonna try downloading the libmysqlclient.so.10 file and adding it here.
Regards,
Laurent
#7
Posted 11 February 2004 - 02:53 PM
http://www.brtnet.org/linux/lamp.htm
the only thing I did differently is install the latest mysql client & server rpms instead of compiling my own. http://www.mysql.com
deffinately worth a try, plus you feel all warm inside when it works!
#8
Posted 26 February 2004 - 10:25 AM
Any suggestions?
OK - I worked it out - if maybe in a contorted method. The box had MySQL client 3.x installed. I installed the 4.0 client with the --force option. The 4.0 server would not install prior to or after installing the 4.0 client. No server had been installed during initial setup. I forced an install of the 3.x server then forced the install of 4.0 server and then forced the 4.0 client to install again. Now both the client and server work - go figure.
#9
Posted 15 March 2004 - 08:32 AM
rpm -ivh php-mysql-4.1.2-7.3.6.i386.rpm
error: failed dependencies:
libmysqlclient.so.10 is needed by php-mysql-4.1.2-7.3.6
I solve my problem by DOWNGRADING my MySql. I had MySql 4.0 installed, but this version of php (php-mysql) needs MySql version 3. That is not at all obvious from this dependency message... But I did do a locate (as suggested earlier on this thread, and I found the version .12 of this library... So I assumed that that was rev'd up to .12 for this lib in MySql 4... so I was able to downgrade MySql to v 3.23 and it seems to be the one that comes with libmysqlclient.so.10.
#10
Posted 07 July 2004 - 01:38 AM
I solved it by
1. uninstalling the '422 php-msyql' rpm
2. uninstalling the MySQL 4.0 'shared' rpm (and downgrading it by...
3. installing a MySQL 3.23 'shared' rpm
4. re-installed #1.. the 422 php-mysql rpm
Problem Fixed.
In end I now have MySQL 4 rpms (server, client, devel, benchmark) and 1 MySQL 3 'shared rpm
However.. it now works-
Jason
#11
Posted 11 August 2004 - 08:26 AM
Still, MySQL seems to be offering their own as well.
Download the package MySQL-shared-compat wich includes the older version of libmysqlclient.so.x (in this case x=10).
#12
Posted 03 February 2005 - 05:36 PM
#13
Posted 05 February 2005 - 07:34 AM
Locate is a facility to find programs, files, etc which are in locate's database. If you make substantial changes to your system, e.g., removing important libraries, daemons, etc., you should run locate again. This time in update mode.
locate -u
Then use locate to search. In the above instances, locate was giving you the "location" of the file "in the past". This is not what you wanted.

Help










