LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-25-2004, 08:48 AM   #1
stephen_e
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: RH9
Posts: 7

Rep: Reputation: 0
Installing php-mysql RPM on RH9


I need to install the php-mysql package which is listed in the webserver area of the server part of the Package Manager. I want to do this to give mysql support to PHP.

I think I have php-4.2.2-17 installed, based on this output from the computer:

[root@bob /]# rpm -qa|grep php
php-imap-4.2.2-17.2
php-4.2.2-17.2
php-ldap-4.2.2-17.2
php-devel-4.2.2-17
[root@bob /]#

But when I try to install the php-mysql package I get this response:

------------
Package Not Found

The following package could not be found on your system. Installation cannot continue until it is installed.

Unlocatable Package Required by
php = 4.2.2-17 php-mysql
-------------------

Does anyone know what I'm doing wrong?
 
Old 09-25-2004, 09:34 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

have u tried instal;ling the package php-mysql through rpm command

copy the package php-mysql package to a temp directory and install it as

rpm -ivh php-mysql....rpm

regards
 
Old 09-25-2004, 10:38 AM   #3
stephen_e
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Yes sir, I tried that:
------
[root@bob tmp]# rpm -ivh php-mysql-4.2.2-17.i386.rpm
error: Failed dependencies:
php = 4.2.2-17 is needed by php-mysql-4.2.2-17
[root@bob tmp]#
----------------------------

That is on the same system I pasted the previous grep output for. I'm not experienced with Linux so I don't know which paths it looks for php in, but it doesn't seem to be able to find it.

Thanks for the suggestion though !
 
Old 09-25-2004, 12:22 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

install php package again with --force option ,maybe the previuos package was not installed correctly

rpm -ivh --force php...

then install ur php-mysql package again

regards
 
Old 09-25-2004, 02:01 PM   #5
stephen_e
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Masand -
-------------------------
[root@bob php]# rpm -ivh --force php-4.2.2-17.2.i386.rpm
Preparing... ########################################### [100%]
1hp ########################################### [100%]
[root@bob php]# rpm -ivh php-mysql-4.2.2-17.i386.rpm
error: Failed dependencies:
php = 4.2.2-17 is needed by php-mysql-4.2.2-17
[root@bob php]#
-------------------------------

I don't know if it matters which directories these were in. I found the php-4... file in a very strange place (/var/spool/up2date), and moved both the RPM's into /usr/local/php before I ran the commands above.

I wonder if it would be better for me to uninstall php altogether and re-install another version from scratch from a .tar file? What do you think? Or if there is something more simple I can do please let me know!

Regards, Steve
 
Old 09-25-2004, 10:36 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

this is the rpm i foung on my redhat 9.0 CD

php-4.2.2-17.i386.rpm

and u have the

php-4.2.2-17.2.i386.rpm

this is diferent relaese version,though there should not be much difference but u should install the same version package here and then try installing mysql package
so remove this one then install the one from the cd ,or get it from the net

also i think u have gone for up2date,that might have installed the newer version

also u can try to install the php package with the same version of php u r having installed

regards
 
Old 09-26-2004, 04:56 AM   #7
stephen_e
LQ Newbie
 
Registered: Jul 2004
Location: UK
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Masand -
That worked well, thanks. In fact I found php-mysql-4.2.2-17.2.i386.rpm which corresponded to my version of php rather than remove php and re-install it at php-4.2.2-17.i386.rpm.

I should have realised that the slight difference in version number was significant, but I'm very ignorant of Linux and RPM procedures.

Many thanks for your help! I've rated your reply with the Affero button.

Regards, Steve.
 
Old 09-26-2004, 09:10 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Smile

hi there

so u just saw what these small mistakes we make.

i too didn't observe that first but subsequent problems have made me to look in that direction
too!!!

i hope now onwards u will be taking care of this point

all the very best!!!!

regards

thanks for the affero
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PHP RPM 4 RH9 - Someone Plz Help..... afoote Linux - General 1 05-10-2004 11:41 AM
RH9 / PHP / MySQL DevlshOne Linux - Newbie 1 01-08-2004 02:47 PM
Slow PHP+MySQL on RH9 tomazu Red Hat 0 01-01-2004 09:29 AM
Latest PHP rpm for RH9 ducky Linux - Software 3 11-09-2003 06:53 PM
RH9 Apache/SSL/PHP/MySQL RPM vs tar.gz Ani Linux - Newbie 5 04-26-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:37 PM.

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