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-09-2003, 04:49 PM   #1
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Rep: Reputation: 15
procedure for installing (good habits)


Can someone please give me a quick guide as to where to install (BTW i never used RPM) programs or drivers ? most linux docs just talk about how to install, untar etc which is fairly self explanetary . .

I have just installed a driver for something and am sure that it doesnt work becos of how i installed it. I normally untar in my home directory and then install from there, this is because i still have a windows mentality of click install and everything will be sorted. I am the only user on my machine so doing this is okay for now but i guess is probly a bad habit

-What is the significance of the place i run 'make' or 'make install' from ?

-I dont want my home directory full of untarred directories, shouldn't i be putting them somewhere nice and tidy (like in windows the program directory)

thanks
 
Old 11-09-2003, 04:58 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
it's perfectly fine to untar and compile in your home directory. It might be a good habit to have ~/source directory or something like that where all the sources go. The programs themselves get installed elsewhere. This happens at the
make install
step. When you run ./configure in the source tree, you can specify where the program is to be installed. Usually, the default is /usr/local. In Mandrake I find that it is often better to use /usr, especially when replacing rpm versions with self-compiled ones. So in my case I do
./configure --prefix=/usr
and then make && make install. You can use
./configure --help
to find all the other options there are. Sometimes very useful. Also, you need to be root to install a program outside your home directory.
 
Old 11-09-2003, 05:14 PM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
in most cases you wont need the source code after installation, so you can actually delete the directory where you did "make" and "make install", the actual binaries generally speaking gets installed somewhere in /usr
But one good reason to keep the source codes in one place is so that you can tell what you've installed and possibly do a "make uninstall" when necessary.
Or you might want to consider changing distro to something like Gentoo, let the portage system handle the management of the source codes for you.
 
Old 11-10-2003, 10:55 AM   #4
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Original Poster
Rep: Reputation: 15
ok thanks. so basically (and without using RPM) i dont have to think about where things are being installed (although obviously i do) since make install will take care of everything for me. Thats great !
 
  


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
live cd procedure sailu_mvn Linux - Software 3 08-17-2005 03:00 AM
What is the procedure for installing a new DVD writer? rturney Linux - Hardware 5 03-09-2005 07:27 PM
Correct installing procedure, but no 3d Accel with ATI 9600XT Darthdan Fedora 2 02-01-2005 02:44 PM
Good Slack Habits? csnow Slackware 3 07-20-2003 05:24 PM
Tar procedure jamaso Linux - General 2 02-12-2002 08:21 AM


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