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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-11-2003, 12:43 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2003
Distribution: slackware 10.0
Posts: 14
Rep:
|
a dilema after configure, make, make install...
first question...
is there a rule on where i should extract source (tar.gz) files???
should i always extract it in /usr/src ???
after extracting the files and performing the configure, make, make install procedure, do i have to make clean???
or can i completely delete the directory that holds the extracted source??
please forgive my desperately novice/newbie question?
thanks...
ali
|
|
|
|
07-11-2003, 12:44 AM
|
#2
|
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Nope.
Nope.
Yep.
But I'd only delete it if I needed space - it's convenient to have around if you want to recompile.
|
|
|
|
07-11-2003, 12:53 AM
|
#3
|
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
Convention is to put source in /usr/local/src. The reason being that if you were to (re)install a distribution, they're not supposed to do ANYTHING to the /usr/local directory tree. But no, there's nothing preventing you from putting the source anywhere you want.
I do things a little different than most. I keep the compressed source code in a separate directory (usually /usr/local/src/tarballs). Then I delete the source tree after the make install. I save some disk space, and it guarantees I get a "clean" install everytime I want to recompile.
It's only slightly more complicated if you have patches or make custom edits to the source.
|
|
|
|
07-11-2003, 12:55 AM
|
#4
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
Re: a dilema after configure, make, make install...
Quote:
Originally posted by alixx
first question...
is there a rule on where i should extract source (tar.gz) files???
|
A rule of thumb maybe, but no *rule* per se. /usr/src should be fine, but you can use /home/tarballs or /usr/local/files if you want (or somewhere else)
Quote:
should i always extract it in /usr/src ???
|
Not necessarily, see above
Quote:
after extracting the files and performing the configure, make, make install procedure, do i have to make clean???
|
Not necessarily, if you remove the files then there is no point. A make clean basically un-does what make does. So only if you are going to re-configure do you have to. But a make clean always helps free up some space if you are wayyy low, but see below for more info on that...
Quote:
or can i completely delete the directory that holds the extracted source??
please forgive my desperately novice/newbie question?
thanks...
ali
|
You can remove the directories that are created during the untarring of the tarball, yes. If space is an issue, this is a great idea. However, be aware that if you want to use something like 'make uninstall' (should it be a feature of that application, not all applications have this feature) then you'll need to make sure you configure/make exactly like you did before to use the make uninstall. But if you don't use make-uninstall, then there is no reason to keep it around (unless you are doing multiple installs on the same system?  probably not though).
Cool
|
|
|
|
01-04-2007, 12:21 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2007
Location: Halifax, NS Canada
Distribution: Kubuntu 11.10
Posts: 5
Rep:
|
Just so I'm completely clear . . . .
I downloaded a tar (Kopete Desklist) to /home/bill/downloads/ I then extracted it to the folder: /home/bill/downloads/32089-desklist-0.3.0 I have installed the plugin. Now I want to delete the folder: /home/bill/downloads/32089-desklist-0.3.0. It is now safe to delete the 32089-desklist-0.3.0 folder as any/all files necessary to run the Kopete Desklist plugin have been installed and/or copied to other folders?? Correct??
|
|
|
|
01-06-2007, 09:50 PM
|
#6
|
|
LQ Newbie
Registered: Dec 2006
Location: North Queensland
Distribution: FC5
Posts: 9
Rep:
|
This is a very handy thread for us newbies.
On my old Windows machine, I was able to keep WIN98 running without reinstalling because I kept track of everything I put on my machine. Anything I didn't need I made damn sure all traces were gone (except for a few registry headings) when uninstalling. The only time I ever reinstalled Windows was when my HDD died.
I wish to do the same with Linux, but no-one ever mentions where the best place for source code is, or even where to put unzipped files. It seems expected that Linux newbies should only use the software that came with their distro, and not install anything else. This just leads to newbies having cluttered filesystems which causes the same need for an annual reinstallation on Linux that you have for Windows.
Even in the "Linux for Dummies" series, there is no real mention of housekeeping when installing new software, let alone uninstalling anything. They expect you to have RPMs for every little thing you need.
Sorry for the rant. I just appreciate that this thread has useful information rather than the regular "just type configure make install and everything should work" which passes for the standard advice on this topic.
|
|
|
|
01-06-2007, 10:42 PM
|
#7
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
There is no registry for coders to hide things in on our OS. If you run make uninstall as root, the program will be gone. It's config files can still exist, but as there are no files looking to these configs, so other than the 2 or 3 kb of space they use, there is nothing that needs to happen.
You don't ever need to wipe *nix and reinstall, unless the problem was created between the keyboard and the chair (aka you!). Any distro can run fine with or without compiling from source. Disk space is so cheap now, you don't need to worry about your 2 Mb tar.gz files eating up space on your 250 Gb drive.
Peace,
JimBass
|
|
|
|
01-07-2007, 05:58 PM
|
#8
|
|
LQ Newbie
Registered: Jan 2007
Distribution: Knoppix 4.0
Posts: 1
Rep:
|
If I understand you correctly you have to do a "make clean" (please explain) and "make uninstall" will uninstall the installed files? So 1. do you "make uninstall" from the same folder you did "make install" 2. should you save the extracted folder incase you want to uninstall or can you recompile source in order to "make uninstall"
 thanx in adv.
|
|
|
|
01-07-2007, 06:09 PM
|
#9
|
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
Make uninstall would have to be run in the same directory as make install. So if your app is named program, and it is unzipped in /usr/local/program, then you would cd there and as root make uninstall.
I guess you could recompile the thing to uninstall it, but that is foolish, and if you change something unknowingly with two different compiles, the uninstall may fail. Space is so cheap, you NEVER should erase the location where you compile. Just leave it there. Then if you decide to erase it later, it is just make uninstall. Game over.
Peace,
JimBass
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
configure, make and make install commands don't work for me
|
Fenster |
Fedora |
8 |
08-18-2004 10:58 AM |
|
Problem with Configure, Make, Make Install
|
n8tgc |
Linux - Newbie |
2 |
07-13-2004 03:16 PM |
|
Installed using ./configure, make, make install, how to remove?
|
EnVoy |
Mandriva |
4 |
03-10-2004 07:05 PM |
|
./configure , make and make install does not work
|
mobassir |
Linux - Software |
7 |
07-30-2003 09:20 AM |
|
Can I automate the tar, ./configure, make, and make install of about 50 packages?
|
JoeLinux |
Linux - General |
2 |
04-13-2002 03:35 AM |
All times are GMT -5. The time now is 10:41 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|