[plug] php 4 installation problem

Anthony J. Breeds-Taurima tony at cantech.net.au
Wed Aug 28 13:34:13 WST 2002


On Wed, 28 Aug 2002, Jon Miller wrote:

> When trying to install php it requires a few of dependencies see below:
> [root at gateway instl]# rpm -ivh php-4.1.2-7.1.3.i386.rpm
> error: failed dependencies:
>         mysql-devel is needed by php-4.1.2-7.1.3
>         pspell-devel is needed by php-4.1.2-7.1.3
>         ucd-snmp-devel is needed by php-4.1.2-7.1.3
>         unixODBC is needed by php-4.1.2-7.1.3
>         unixODBC-devel is needed by php-4.1.2-7.1.3

Hmmm Thats's just plain stupid, php _shouldn't_ need and -devel packages.
 
> In order to install the devel that are require I have to install the main
> packages.  
> [root at gateway instl]# rpm -ivh mysql-devel-3.23.41-1.i386.rpm
> error: failed dependencies:
>         mysql [root at gateway instl]# rpm -ivh mysql-3.23.41-1.i386.rpm

Again this is stupid, you _should_ be able to install the devel stuff for
an application.  Just because you want to compile stuff that works with MySQL
doesn't mean you want to use MySQL!

> error: failed dependencies:
>         libreadline.so.4   is needed by mysql-3.23.41-1
> 
> Release 9 of readline is already installed, but It appears that release 9
> cannot be upgraded to release 10.
> [root at gateway instl]# rpm -Uvh readline41-4.1-10.i386.rpm
> Preparing...                ###########################################
> [100%]
> file /usr/lib/libhistory.so.4.1 from install of readline41-4.1-10 conflicts
> with file from package readline-4.1-9
> file /usr/lib/libreadline.so.4.1 from install of readline41-4.1-10 conflicts
> with file from package readline-4.1-9
> [root at gateway instl]# rpm -Fvh readline41-4.1-10.i386.rpm
> You have new mail in /var/spool/mail/root
> [root at gateway instl]# rpm -ivh mysql-3.23.41-1.i386.rpm
> error: failed dependencies:
>         libreadline.so.4   is needed by mysql-3.23.41-1
> 
> Does anyone have any suggestions in getting these packages in.  In other
> words should I override or force the update?

The problem is that, readline-4.1-9's package name is, 'readline where as
readline41-4.1-10's  packagename is 'readline41'.  This means that
RedHat is defaulting to install (as you don't have a readline41 package to
upgrade).  Your options are:

1) remove readline-4.1-9 and install readline41-4.1-10
2) --nodeps the install of mysql-3.23.41-1.i386.rpm as 'libreadline.so.4'
   is on the system it just isn't "provided" (in the package meta data sense)
   by readline-4.1-9
3) rebuild MySQL and readline (properly) on your local system.

Assuming that readline41 "provides" all the same things as readline then I'd
choose option one.  If not the option 2 is looking good.

Yours Tony

   Jan 22-25 2003           Linux.Conf.AU            http://linux.conf.au/
		  The Australian Linux Technical Conference!



More information about the plug mailing list