Forum overview »
Applications » Installing PHP and MySQL on RedHat 9.0 (1/1)
| Installing PHP and MySQL on RedHat 9.0 |
| Author |
Message |
NehaVerma
Junior Member
Posts: 1
Joined: 2003-12-26
Member No.: 24926
|
2003-12-27 00:04:19
Hi,
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?
|
|
| Post #3963 |
|
blueworm
Senior Member
Posts: 169
Joined: 2003-03-02
Member No.: 18676
|
2003-12-31 20:52:46
Ok it is clear that what you need is libmysqlclient.so.10
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.
|
|
| Post #4166 |
|
nisha_s
Junior Member
Posts: 1
Joined: 2004-01-06
Member No.: 25330
|
2004-01-06 00:28:32
hi,
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
|
|
| Post #4407 |
|
Dapper Dan
Moderator
Posts: 1703
From: The Sovereign state of South Carolina
Joined: 2003-09-26
Member No.: 22400
|
2004-01-06 07:09:03
You could install apt-get rpm to get those packages installed if all else fails. As an experiment I just downloaded and installed both on my RH 9 box in less than 2 minutes...
|
|
| Post #4414 |
|
hcq
Junior Member
Posts: 1
Joined: 2004-01-08
Member No.: 25426
|
2004-01-08 03:40:50
hi,
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
|
|
| Post #4436 |
|
ariase
Junior Member
Posts: 1
Joined: 2004-01-12
Member No.: 25658
|
2004-01-12 11:57:00
"hi,
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
|
|
| Post #4556 |
|
weeb
Member
Posts: 12
Joined: 2004-02-11
Member No.: 27161
|
2004-02-11 06:53:30
dunno about dependencies but this page helped me out a hell of a lot...
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!
|
|
| Post #5518 |
|
jhparizona
Junior Member
Posts: 1
Joined: 2004-02-26
Member No.: 22882
|
2004-02-26 02:25:45
I was able to install the client but the server does not install. Complains about libmysqlclient.so.10. This file exists and I tried co-locating with the install RPM but still doesn't work.
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.
|
|
| Post #5979 |
|
merlsub
Junior Member
Posts: 1
Joined: 2004-03-15
Member No.: 28760
|
2004-03-15 00:32:06
I had the same problem with
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.
|
|
| Post #6556 |
|
juggernt
Junior Member
Posts: 1
Joined: 2004-07-06
Member No.: 32553
|
2004-07-06 18:38:31
I had the same libmysqlclient problem with RH9.0 MySQL 4.0 and PHP 422.
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
|
|
| Post #140972 |
|
creep
Member
|
2004-08-11 01:26:53
I know this subject is getting old, and many ppl have found their solutions to this problem.
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).
|
|
| Post #143351 |
|
Reinhard
Junior Member
Posts: 1
Joined: 2005-02-03
Member No.: 58158
|
2005-02-03 09:36:46
do a rpm -U MySQL-shared-compat-4.1.9-0 that should solve all problems. had the same
|
|
| Post #156670 |
|
BSchindler
Member
Posts: 65
Joined: 2005-01-24
Member No.: 56697
|
2005-02-04 23:34:54
It would seem that some people are confused by locate.
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.
|
|
| Post #156798 |
|
Forum overview »
Applications » Installing PHP and MySQL on RedHat 9.0