upgrading mysql using RPM - getting too many OS dependency issues.

Posted on 2005-03-11
Medium Priority
Last Modified: 2013-12-16
I am trying to install the mysql4.1 rpm but it's requires a number of other updates

[root@d267v22 tmp]# rpm -Fvh mysql-4.1.9-1.i386.rpm
error: failed dependencies:
        libc.so.6(GLIBC_2.3)   is needed by mysql-4.1.9-1
        libc.so.6(GLIBC_2.3.4)   is needed by mysql-4.1.9-1
        libcrypto.so.4   is needed by mysql-4.1.9-1
        libpthread.so.0(GLIBC_2.3.2)   is needed by mysql-4.1.9-1
        libssl.so.4   is needed by mysql-4.1.9-1
        libstdc++.so.6   is needed by mysql-4.1.9-1
        libstdc++.so.6(CXXABI_1.3)   is needed by mysql-4.1.9-1
        mysql = 3.23.58 is needed by mysql-devel-3.23.58-1.73
        mysql = 3.23.58 is needed by mysql-server-3.23.58-1.73
        libmysqlclient.so.10   is needed by mysql-server-3.23.58-1.73
        libmysqlclient.so.10   is needed by perl-DBD-MySQL-1.2219-6
        libmysqlclient.so.10   is needed by MySQL-python22-0.9.1-1ensim1
        libmysqlclient.so.10   is needed by php-mysql-4.3.3-0ensim3

So I start the search but  .. have run into a problem. GLIBC_2.3 needs glibc-common which then needs tzdata but it appears to have a dependency on libc-common.

[root@d267v22 tmp]# rpm -Fvh glibc-2.3.4-3.i686.rpm
error: failed dependencies:
        glibc-common = 2.3.4-3 is needed by glibc-2.3.4-3
        shadow-utils < 2:4.0.3-20 conflicts with glibc-2.3.4-3
        glibc > 2.2.5 conflicts with glibc-common-2.2.5-44

[root@d267v22 tmp]# rpm -Fvh glibc-common-2.3.4-3.i386.rpm
error: failed dependencies:
        tzdata >= 2003a is needed by glibc-common-2.3.4-3
        glibc < 2.3.4 conflicts with glibc-common-2.3.4-3
        glibc-common = 2.2.5-44 is needed by glibc-2.2.5-44

I installed tzdata-2003d
[root@d267v22 tmp]# rpm -Fvh tzdata-2003d-1.src.rpm
   1:tzdata                 ########################################### [100%]

But it still complains
[root@d267v22 tmp]# rpm -Fvh glibc-common-2.3.4-3.i386.rpm
error: failed dependencies:
        tzdata >= 2003a is needed by glibc-common-2.3.4-3
        glibc < 2.3.4 conflicts with glibc-common-2.3.4-3
        glibc-common = 2.2.5-44 is needed by glibc-2.2.5-44

Can someone help please?

Question by:Bl248
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Assisted Solution

owensleftfoot earned 200 total points
ID: 13520650
I would recommend that you use yum which you can get here -
http://linux.duke.edu/projects/yum/ Yum is a tool for managing packages and is similar to debians apt - If you install a package with yum it will automatically download and install all the packages the package needs.
LVL 40

Expert Comment

ID: 13521688
I think you'd be better served by an OS upgrade that includes a later version of MySQL. Futzing with Glibc can be hazardous to your system's health since almost everything is linked against Glibc. Your other option would be to remove MySQL and build your own copy of 4.1 from source.

Assisted Solution

rajendraone earned 400 total points
ID: 13535085
Use yum .
If you are using fedora then you have it else you need to download.
Thst will automatically resolve the dependencies and install the package you required also with all the dependend package required.

download yum rpm and install it using rpm.  I think it doesnt ask for dependiencies which is on my case.

then install the package you require using yum.
Note: For this you have to be connected to the internet and may take several minutes.

#yum install mysql
It will look for the best appropriate package for your server.
#yum install mysql mysql-4.1.9-1.i386.rpm
This will search the package from internet and download and ask you for installation.


Tutorial: Introduction to Managing a Linux Server

In this tutorial on systemd, we will explore:
-OS/Distro Adoption
-chkconfig and Other Legacy Commands
-Summary and Key Commands


Expert Comment

ID: 13540891
If you do a lot of software version upgrades, i'd seriously consider a source based distribution.  I don't know many well, but, for example, with Gentoo, if you ask for the latest version of a package(their tool is emerge), for example emerge mysql, you would get mysql custom build for your system(no glibc version dependancies).  A complete system change is a lot though, so your other next easiest option is to custom build the mysql from source.

Author Comment

ID: 13541994
I like the idea of yum and was able to install version 1.0.3 and tried to install versions 2.x but was not able to.
I tried as well to use yum to update itself - came back as being the latest version installed.

The linux server I have is running 7.3 which I know is a legacy or older version but this is a hosted server.
Trying to install other packages with yum normally results in a "Can not find package"

The yum.conf has this config
name=Red Hat Linux 7.3 - i386 - freshrpms

And I can see that URL does not have all rpm's that I see when I use rpmfind.

I was not able to find an rpm for the mysql 4.1 engine and linux 7.3 using rpmfind. I can only find a generic linux i386 version rpm on the mysql site.

Expert Comment

ID: 13551989
You can change the yum.conf to change the url where your required rpm exisit. Try it changing the url and read man pages for yum. I guess it will help you.

Author Comment

ID: 13552200
Yep - I did that too but as I noted, I did not actually find a site that had the needed rpm's for 7.3. Specifically mysql 4.1.  I noticed later versions of yum have a config setting for mirrors or multiple sites but this version apparently only has one url setting.

Accepted Solution

surya_prabhakar earned 400 total points
ID: 13573472
Your target is to upgrade Mysql . Why are you insisting on upgrading them only with rpm.
when you are using such a legacy machine you should consider other options. As other people said you play with glibc and screw your system beyond repair rather tough to repair.
I suggest you use a statically compiled binary of mysql instead of an rpm . These binaries are available on mysql site .

Check the below URL

Linux (x86, glibc-2.2, static, gcc)     Standard     4.1.9     26.9M

Once you untar it - it has a README and another file called configure which explains how to start . Moreover lof of documentation is also available.


Author Comment

ID: 13574647
Thanks surya,

I will do so...

I was also given strong recommendation to use yum which sounded like a better route if I could have found an rpm but I hear your caution about the glibc library.

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question