LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2003, 11:28 PM   #1
Neha
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Rep: Reputation: 0
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0


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?
 
Old 12-27-2003, 02:25 AM   #2
zatka
Member
 
Registered: Dec 2003
Distribution: Fedora 7
Posts: 75

Rep: Reputation: 15
u can try the nodeps option within rpm.
rpm -ivh --nodeps <packagenames>
this wont give u the error regarding dependencies
 
Old 12-27-2003, 04:40 AM   #3
hypexr
Member
 
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Rep: Reputation: 16
Yeah, but then Neha will be missing the necessary librarys and dependencies.

Do you need to install all of those packages to meet the libmysqlclient.so.10 failed dependency?
 
Old 12-27-2003, 05:37 AM   #4
zatka
Member
 
Registered: Dec 2003
Distribution: Fedora 7
Posts: 75

Rep: Reputation: 15
Neha,

I think u need to install mysql client.
 
Old 12-27-2003, 09:23 AM   #5
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
get apt (http://apt.freshrpms.net) It will take care of the dependencies
 
Old 12-27-2003, 12:16 PM   #6
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
if i wanted to use apt to download and upgrade mysql on RH9 how would i do that?

just apt-get install mysql

then would it install the latest version of mysql?

just wondering........apt sounds cool.
 
Old 12-27-2003, 12:35 PM   #7
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
apt-get update (syncs your local list of packages with the servers)
apt-get upgrade (upgrades all packages)
apt-get install mysql-server (installs the latest version included with the distro) (redhat 9 is 3.23 something)

If you really need mysql 4 you have to download the rpm from www.mysql.com . If you have a dependency problem you can do

apt-cache search dependency

ex: apt-cache libdbi


Final though: I really suggest you install MySQL shared libraries if you are planning on using mysql 4 on a redhat box. Solves a lot of problems
 
Old 12-27-2003, 12:37 PM   #8
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Sorry. Bad example

The example should look like

ex: apt-cache sarch libdbi

I suggest you read

man apt-get
man apt-cache
 
Old 12-27-2003, 01:08 PM   #9
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
will do....when i installit

lol

just interested a guy at work uses it......

um.....do u see a point to upgrading mysql to 4.x? not really sure its worth it.
i'm learning it u see and php...

G
 
Old 12-27-2003, 08:34 PM   #10
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
From the download section of www.mysql.com:

Server 4.0.17-0 9.0M Pick a mirror
MD5: 821f9cf17c1ba0e43828e4f49c93de1b
Max 4.0.17-0 1.5M Pick a mirror
MD5: da50e7086069d899a849c9684c35a016
Benchmark/test suites 4.0.17-0 1.7M Pick a mirror
MD5: c56801364ad0e70a69a92c0dcbff1e4e
Client programs 4.0.17-0 2.6M Pick a mirror
MD5: 64ff4c7fb45eb48c307e0f0e80c60d05
Libraries and header files 4.0.17-0 925.8K Pick a mirror
MD5: c26eee03c3d109337dd1bd8c0f2c8c22
Dynamic client libraries 4.0.17-0 256.6K Pick a mirror
MD5: 948b78a4c6dc6ccafd3020d1a1f13558
Embedded server 4.0.17-0 2.0M Pick a mirror
MD5: 8c179cd252d62d72a47ff9eab972390e
Dynamic client libraries
(including 3.23.x libraries) 4.0.17-0 479.4K Pick a mirror
MD5: 09af217f22374cc01a2f9964d44f6e6b

If you download the Server, Client, Header Libs, Client Llibs and Client Compat Libs (the last one) then you'll be good to go. De-install the 3.23.xx version that comes with RedHat, install these RPMs, PHP and everything else stock RedHat that uses MySQL will simply work. The last item on the download list, the -shared-compat- file is very important, it provides a 3.23.xx compatible interface to the server...
 
Old 12-28-2003, 04:12 AM   #11
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
cheers

you've been a great help

Last edited by GraemeK; 12-28-2003 at 05:11 AM.
 
Old 12-28-2003, 10:18 PM   #12
Neha
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Does the order in which the files appear in the rpm command matter?

If I do rpm -ivh <all the files>
 
Old 12-28-2003, 10:49 PM   #13
Neha
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
rpm hangs when I try to install any of the software. Even when I use the verbose switch it doesn't print anything on screen.
 
Old 12-29-2003, 12:06 AM   #14
Neha
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
It's working!

The database file was corrupt. Now everything seems ok.

Thanks a lot everyone.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing php with mysql support Elguapo Linux - Software 3 07-21-2005 09:58 PM
php <-> MySql support boardtc Mandriva 8 04-06-2005 01:05 AM
Slackware 10, PHP doesn't support MySQL whoie99 Slackware 7 07-26-2004 04:59 AM
Problem installing PHP with MySQL on RedHat 9 d2army Linux - Newbie 1 07-11-2004 05:58 PM
Help Installing MySql, Apache and PHP for RedHat 8 rmedina Linux - Newbie 2 10-18-2003 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration