LinuxQuestions.org
Help answer threads with 0 replies.
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 11-05-2008, 08:21 AM   #1
Vergil
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Rep: Reputation: 0
pls..uninstalling issues


PLease, trying to install Mesa, and been asked to install applications upon applications. SO far I have done what I have been asked.
Presently, was asked to install 'libdrm', did that, but it was an old one (libdrm 2.20). Now, was told to install newer one. Done that now, but it still sees old one.
How can I remove the old one?
I expected it to be overwriten by now.

ANy ideas

THanks in advance
 
Old 11-05-2008, 09:21 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,327

Rep: Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881
Quote:
Originally Posted by Vergil View Post
PLease, trying to install Mesa, and been asked to install applications upon applications. SO far I have done what I have been asked.
Presently, was asked to install 'libdrm', did that, but it was an old one (libdrm 2.20). Now, was told to install newer one. Done that now, but it still sees old one.
How can I remove the old one?
I expected it to be overwriten by now.

ANy ideas

THanks in advance
You don't say what distro you're using, or what you did to install libdrm, so it's hard to give you detailed help.
 
Old 11-05-2008, 10:20 AM   #3
Vergil
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Fedora 9.

Downloaded & Extracted the archive
./configure
make
make install

hope that helps
 
Old 11-05-2008, 12:09 PM   #4
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
I think that's the most disturbing point for linux new-comers...
NEVER INSTALL THINGS BY HAND, ALWAYS USE THE PACKAGE MANAGER PROVIDED WITH THE DISTRO
So for now, try this: uninstall properly everything you've installed by hand by going into the sources directory and typing "make uninstall". If "make uninstall" didn't work, you'll have to find what have been installed and where. So if it's a program / library named "toto" [CODE]find /usr /opt -name "*toto*"[\CODE] will show you where the program / library "toto" is...
When you have clean up your system, as root you type
Code:
yum install yumex
to install yumex, answer yes to all question, and then you'll find under "System tools" of the gnom menu th yumex program where you can search for packages given their name or description... Just search for MESA and then it will resolve all the dependencies for it auto-magically...
If the package manager don't find it, maybe it is in a "repository" the manager doesn't aware of, this is especially the case for things like mp3 or proprietary drivers which stand in "livna" repository for FEDORA, google for livna will explain you how to install this new repo, don't worry it's really straightforward.
I repeat it once:
NEVER INSTALL THINGS BY HAND, ALWAYS USE THE PACKAGE MANAGER PROVIDED WITH THE DISTRO
 
Old 11-05-2008, 03:37 PM   #5
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
Quote:
Originally Posted by jf.argentino View Post
I think that's the most disturbing point for linux new-comers...
NEVER INSTALL THINGS BY HAND, ALWAYS USE THE PACKAGE MANAGER PROVIDED WITH THE DISTRO
If a person never learns to compile, they'll be forced to depend on a distro's package manager. I consider myself fortunate that I learned to compile early in my Linux experience. While it is generally better to use the package manager, I can go from distro to distro and install anything I want, assuming I have the source and dependencies covered...
 
Old 11-05-2008, 04:32 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,327

Rep: Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881
Quote:
Originally Posted by Chromezero View Post
If a person never learns to compile, they'll be forced to depend on a distro's package manager. I consider myself fortunate that I learned to compile early in my Linux experience. While it is generally better to use the package manager, I can go from distro to distro and install anything I want, assuming I have the source and dependencies covered...
Agreed...I think both methods should be used, or at least be comfortable with building from source.

Vergil, what did you download? The libdrm.tar.gz file (I know the name probably has a version or something in it...) The archive probably came with some instructions, saying you had to run ldconfig after build/install, or do something in particular to get it in your library path. Check those instructions out....

Also, do try to do an install through yum, as it will save you some headaches, and may clear your problem up quicker.
 
Old 11-05-2008, 05:10 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by Chromezero View Post
If a person never learns to compile, they'll be forced to depend on a distro's package manager. I consider myself fortunate that I learned to compile early in my Linux experience. While it is generally better to use the package manager, I can go from distro to distro and install anything I want, assuming I have the source and dependencies covered...
The problem with this knowledge is that if you are not careful enough (or you simply don't know how to handle it adequately) then it has a dark side, just like Mr. Skywalker already noticed. Yeah, silly joke.

The most common problem is not knowing how to correctly handling this stuff.
  • First, if you install a package using the package manager, don't overwrite it using a source package via make install.
  • Second, if you installed a package using the source tree and via make install, don't overwrite it using the package manager.

Why? Because you have no guarantee that both things are writing to the same location, and then there're leftovers, and then you begin to ask why your compiler is acting funky and why the hell it can't just locate the right library instead of bothering you with silly error messages.

If the compiler is finding a given version is because at least some traces of it haven't been overwritten as you thought.

So, my recommendations:
  • Always keep the source tree you used to make install. It's the only sure way to uninstall the files (via make uninstall usually, but of course you should check the READMEs and that stuff).
  • If you are using sources, and want to substitute it with a package that's handled by your package manager, first uninstall with make uninstall, then install with the package manager.
  • If you are using the package manager and want to migrate to sources, first uninstall using your package manager, then install using sources.

All in all, most of the issues can be prevented with a good hygiene, just like in real life

PS: I perfectly understand why you would need to compile something like libdrm, so ignore comments above. Sometimes the packages tagged as stable on the distro repos are simply lacking functionality. And sometimes you simply want to test a driver or a new feature to see if you can get rid of a binary proprietary blob.

Last edited by i92guboj; 11-05-2008 at 05:21 PM.
 
Old 11-06-2008, 07:49 PM   #8
Vergil
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
cool cheers guys.
BUt what is the difference between source tree & sources?

I usually download the archives and install it that way, but will take the package installer method into consideration now.

thanks in advance

Last edited by Vergil; 11-06-2008 at 07:54 PM.
 
Old 11-07-2008, 12:27 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by Vergil View Post
cool cheers guys.
BUt what is the difference between source tree & sources?
In my post none at all. When I say "source tree" I mean "the directory tree containing the source code for the program that you intend to compile". Also known as "the source".

Quote:
I usually download the archives and install it that way, but will take the package installer method into consideration now.

thanks in advance
If you are going to be bypassing the native way to install packages all the time, why use a distro at all? You really should stick to the package manager unless you have a reason not to for a given package.

If you really need to compile everything, then you should use LFS or Gentoo and not a binary distro. The whole point of using a binary distro is to have the stuff precompiled so you don't need to compile it yourself, and in the way, easy things like maintenance and resolution of dependencies, which the package manager will do for you.
 
  


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
ATI Ain in Wonder 8500DV LINUX LIVE boot issues (and TV issues) Flashmahn Linux - Hardware 1 03-09-2009 07:40 AM
Dell m1210 Linux issues (having issues getting network working under Ubuntu) thebert Linux - Newbie 4 03-14-2008 04:47 PM
Network lost probably windows issues pls help PDock Linux - Networking 1 10-05-2006 07:51 PM
RHEL 3 with Windows XP - Help please pls pls ar_m_in Red Hat 7 10-01-2006 10:42 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 06:12 PM


All times are GMT -5. The time now is 11:04 PM.

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