LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Removing conflicting libraries (https://www.linuxquestions.org/questions/linux-newbie-8/removing-conflicting-libraries-4175465558/)

NotionCommotion 06-11-2013 09:04 AM

Removing conflicting libraries
 
I just installed Centos 6.4.

I then tried to install MySQL 5.6, but get the following error:

Code:

  file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.12-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
Okay, then I do the following, and see the culprit.
Code:

[root@centosBox src]# rpm -qa | grep -i mysql
mysql-libs-5.1.66-2.el6_3.x86_64
mysql-devel-5.1.66-2.el6_3.x86_64

How did these get installed and how do I remove them?

Thanks

suicidaleggroll 06-11-2013 09:15 AM

How are you trying to install mysql server? Have you messed with your yum repository list?

NotionCommotion 06-11-2013 09:23 AM

Quote:

How are you trying to install mysql server?
Code:

# rpm -ivh MySQL-server-5.6.12.1.el6.x86x64.rpm
Quote:

Have you messed with your yum repository list?
I don't really understand how repository lists work.

I apparently removed can remove the lib doing:
Code:

rpm –nodeps -e mysql-libs

suicidaleggroll 06-11-2013 12:42 PM

Why aren't you using yum to install the packages? Your problem is you're trying to install a mysql server that is not compatible with the library versions that are maintained for your distribution. You should rarely be installing software directly from rpms, or you'll have to deal with problems like this.

Code:

yum install mysql-server
You may need to do a
Code:

yum update
first to bring your library versions up to date, since the current version for CentOS 6.4 is 5.1.69-1

NotionCommotion 06-11-2013 02:13 PM

Quote:

Why aren't you using yum to install the packages?
Because, according to http://dev.mysql.com/doc/refman/5.6/...ation-rpm.html
Quote:

The recommended way to install MySQL on RPM-based Linux distributions is by using the RPM packages. The RPMs that we provide to the community should work on all versions of Linux that support RPM packages and use glibc 2.3.
At the very end, they briefly discuss yum, and it was so brief, I didn't know if I should follow it.

suicidaleggroll 06-11-2013 02:24 PM

When it comes to installing software or libraries, the order should go:

1) try yum
2) if yum doesn't have the package, see if there is a 3rd party repo you can add that would supply it, add the repo, set repo priorities, and then use yum
3) if no repos offer the package, fall back to rpm and manually deal with dependency hell (what you ran into on your first post)
4) if no rpm is available, compile it from source

NotionCommotion 06-11-2013 02:33 PM

Thank you for your help.

I just finished installing Apache and PHP from source :( The documentation for both seems to recommend installing from source. I've often had a difficult time finding a PHP repository of exactly what I wanted. Don't know if there is any value of installing Apache from source. Would you also promote yum for these two applications as well?

Thanks

suicidaleggroll 06-11-2013 02:56 PM

Many software developers "recommend" compiling from source so that:
1) you have the most current version, and
2) they can provide one set of instructions to cover [nearly] any distribution

The disadvantage of compiling from source is that it can sometimes be a major PITA, and once you're done you're stuck with whatever version you compiled/installed until you decide it's time to download/compile/install from source again.

This page gives an overview of installing apache and php from yum:
http://articles.slicehost.com/2008/2...pache-and-php5

It's basically just a matter of
Code:

yum install httpd mod_ssl php php-common
and then verify the configuration looks good and start it up.


All times are GMT -5. The time now is 04:35 AM.