Compatible Support Forums: Installing PHP and MySQL on RedHat 9.0

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Installing PHP and MySQL on RedHat 9.0

#1 User is offline   NehaVerma 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 27-December 03

Posted 27 December 2003 - 08:04 AM

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?
0

#2 User is offline   blueworm 

  • member
  • Group: Members
  • Posts: 169
  • Joined: 02-March 03

Posted 01 January 2004 - 04:52 AM

Ok it is clear that what you need is libmysqlclient.so.10
do this
Code:
updatedb
locate libmysqlclient.so

If your version is older install a newer version, if your version is newer do this.
Code:
ln -s ../libmsqlclient.so.X ../libmysqlclient.so.10

What the ../ means is the PATH. and what you are doing is creating a sym link.
0

#3 User is offline   nisha_s 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 06-January 04

Posted 06 January 2004 - 08:28 AM

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
0

#4 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 06 January 2004 - 03:09 PM

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...
0

#5 User is offline   hcq 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 08-January 04

Posted 08 January 2004 - 11:40 AM

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
0

#6 User is offline   ariase 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 12-January 04

Posted 12 January 2004 - 07:57 PM

Quote:
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
0

#7 User is offline   weeb 

  • stranger
  • Group: Members
  • Posts: 12
  • Joined: 11-February 04

Posted 11 February 2004 - 02:53 PM

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!
0

#8 User is offline   jhparizona 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 26-February 04

Posted 26 February 2004 - 10:25 AM

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.
0

#9 User is offline   merlsub 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 15-March 04

Posted 15 March 2004 - 08:32 AM

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.
0

#10 User is offline   juggernt 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 07-July 04

Posted 07 July 2004 - 01:38 AM

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
0

#11 User is offline   Creep 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 11-August 04

Posted 11 August 2004 - 08:26 AM

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).
0

#12 User is offline   Reinhard 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 03-February 05

Posted 03 February 2005 - 05:36 PM

do a rpm -U MySQL-shared-compat-4.1.9-0 that should solve all problems. had the same
0

#13 User is offline   BSchindler 

  • journeyman
  • Group: Members
  • Posts: 68
  • Joined: 24-January 05

Posted 05 February 2005 - 07:34 AM

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.

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users