LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2013, 09:04 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 568

Rep: Reputation: Disabled
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
 
Old 06-11-2013, 09:15 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
How are you trying to install mysql server? Have you messed with your yum repository list?
 
Old 06-11-2013, 09:23 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 568

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-11-2013, 12:42 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
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

Last edited by suicidaleggroll; 06-11-2013 at 12:44 PM.
 
Old 06-11-2013, 02:13 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 568

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-11-2013, 02:24 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
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
 
Old 06-11-2013, 02:33 PM   #7
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 568

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-11-2013, 02:56 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,393

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
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.
 
  


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
OpenSSL missed libraries. BIGNUM libraries! ChozN Programming 1 12-25-2011 02:38 PM
Thread limits in dynamic libraries as opposed to static libraries pmkenny1234 Linux - Software 0 04-26-2011 02:22 PM
fb: conflicting fb hw usage inteldrmfb vs VESA VGA - removing generic driver RandomTroll Linux - Newbie 4 03-14-2010 07:50 PM
removing text shadows in kde; removing taskbar color gradient webazoid Linux - Software 1 04-11-2006 02:56 AM
Removing .a libraries in /usr/lib/ kunkie Linux - General 1 08-27-2005 11:44 PM


All times are GMT -5. The time now is 10:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration