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 06-03-2009, 09:19 AM   #1
7mza
Member
 
Registered: May 2008
Location: Jordan
Distribution: use fedora but prefer Slackware
Posts: 98

Rep: Reputation: 15
install again from source


i just want ask if i install program from source and i install it again without uninstall it using "make uninstall" .. is this way work fine to install again ?
 
Old 06-03-2009, 10:00 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
As a general rule the second install will overwrite the first install and everything will be OK.

--------------------
Steve Stites
 
Old 06-03-2009, 11:14 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,738

Rep: Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586
jailbait is right, the new installation will overwrite the files from the previous one.
Note that if you are going to change any options in the ./configure script, you should prior running ./configure, to run "make clean" or "make distclean" to remove the files created from the previous build.
 
Old 06-03-2009, 11:38 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,072

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
I have to respectfully disagree.

The only way to guarantee that the system will be correctly cleaned is to preserve the build tree, and do "make uninstall" before doing a new installation.

Bear in mind that if you use different configure options (for example, --prefix but there can be many more that can potentially leave crap in your system) files from previous installations will be left behind, and probably in a default path. This will later lead to problems of the kind "I have installed it 1000 times and it complains that it can't find a library, but I see it, and it is there". This problems are extremely hard to diagnose and solve, I've seen this like thousands of times, a tipical case is when users install the nvidia or ati drivers using their package manager, and then (for I-don't-know-what-reason) they reinstall them by hand using the nvidia or amd installer. This leads to cases where the kernel modules and the glx api will not match, and the price is a two weeks vacation fishing libraries all around your fs and wandering why the heck linux is that bad and crappy.

Besides that, when you update a package the newer versions will not necessarily use the same file set. Some files may no longer exist, some others might live in other place. In this case, leftovers are usually not dangerous, though still some problems can arise (and I am not considering relevant the disk space waste).

So, when you are going to update a package to a new version or you are going to use a different set of configure options, first, make sure that you uninstall properly before.
 
Old 06-03-2009, 04:20 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,738

Rep: Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586
Quote:
i just want ask if i install program from source and i install it again without uninstall it using "make uninstall"
I think that OP wants to install the same version program recompiling it again. If that's the case, "make (dist)clean" before ./configure is ok to use (well unless the prefix is changed of course)
Building and installing a different version, should overwrite most of the files, but it can also leave some old ones(specially libraries). Even though "make install" should take care of symlinking the newest library files installed, with plain .so, it's good practice to run "make uninstall" if it's available to get rid of the unneeded old libraries.

Regards

Last edited by bathory; 06-03-2009 at 04:22 PM.
 
  


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
Manual nvidia install needs kernel source, unable to select source in YOU sirius57 Linux - Hardware 2 12-04-2007 05:11 PM
What Distro to use that install binarys and source on install for 64 bit? i0null Linux - Distributions 1 01-16-2007 01:04 PM
I still can't install anything from source pusrob SUSE / openSUSE 3 01-21-2006 12:52 PM
Upgrading OpenSSL rpm install to a source install userini Linux - Software 3 06-05-2004 10:23 AM
Mozilla Firebird: binary install or source install? hecresper Slackware 8 08-22-2003 12:46 PM


All times are GMT -5. The time now is 08:18 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