LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Installing php-mysql RPM on RH9 (https://www.linuxquestions.org/questions/red-hat-31/installing-php-mysql-rpm-on-rh9-235063/)

stephen_e 09-25-2004 08:48 AM

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?

masand 09-25-2004 09:34 AM

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

stephen_e 09-25-2004 10:38 AM

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 ! :)

masand 09-25-2004 12:22 PM

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

stephen_e 09-25-2004 02:01 PM

Hi Masand -
-------------------------
[root@bob php]# rpm -ivh --force php-4.2.2-17.2.i386.rpm
Preparing... ########################################### [100%]
1:php ########################################### [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

masand 09-25-2004 10:36 PM

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

stephen_e 09-26-2004 04:56 AM

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

masand 09-26-2004 09:10 AM

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!!!:p

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

all the very best!!!! :D

regards

thanks for the affero ;) ;) ;) ;) ;)


All times are GMT -5. The time now is 11:52 AM.