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 11-04-2004, 03:48 PM   #1
dimsun
Member
 
Registered: Oct 2004
Posts: 46

Rep: Reputation: 15
compiling suggestion


Halo,
I need some advises/suggestions for the way I download/compile/install files.
I don't know if the following steps are correct:

log as root.
download the file name.tar.gz to the /usr/local/tmp directory I make this directory myself)
tar the file in the above directory
./configure
make install
and then the program's bin will go to /usr/local/bin directory by itself.

I am wondering should I save the download files to /tmp directory or /usr directory? or doesn't matter? because I am affair if something bad happen when I compile the files, it will affect the whole directory?

any corrections, suggestions !!

Thanks
 
Old 11-04-2004, 03:56 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
log in as normal user.
make a downloads directory inside your home directory.
extract it there and compile it
sudo and make install
 
Old 11-04-2004, 04:00 PM   #3
dimsun
Member
 
Registered: Oct 2004
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for ur suggestion. so when the instruction says "log as root", does that mean I cannot compile/install the files in /home directory? must be in /root?
and let's say if I want to download Libsigc++, can i download in /home (log as normal user) and after I compile the files, the /root/usr/bin will have a record automatically?

thank again. !!
 
Old 11-04-2004, 04:38 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
when you compile a program, the place of installation is controlled with the --prefix command.
configure --prefix=/usr/local
will install the stuff under user local when you run make install, no matter where you compiled. you don't have to be root to compile, unless your system is set up that way. you just have to be root, or have root privliges to install the software where every user on the system has access.
 
Old 11-04-2004, 04:40 PM   #5
yano
Member
 
Registered: Nov 2004
Location: Slovak republic - Bratislava
Distribution: debian & gentoo
Posts: 43

Rep: Reputation: 15
1. it does not matter where You are going to download it
2. as root, do only what is needed, nothing more
3. You do not need to be root for downloading file
4. common instructions are
0. odwnload the file (in your home folder)
1. untar the file (if it is in gzip try tar xvzf file.tar.gz)
2. cd in untared directory
3. less README
4. less INSTALL
5. su
6. ./configure
7. make
8. make install

And You are done. Do not forget number 7 ;-)
Enjoy.
 
Old 11-04-2004, 06:11 PM   #6
dimsun
Member
 
Registered: Oct 2004
Posts: 46

Original Poster
Rep: Reputation: 15
Yano..you are not the newbie...=)
 
  


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
Suggestion for an old PC satterfield.b Linux - General 3 07-06-2005 05:52 PM
Suggestion(s) MBH LQ Suggestions & Feedback 3 01-19-2005 08:23 AM
Just a suggestion coolfrog LQ Suggestions & Feedback 2 09-21-2004 03:08 PM
suggestion infamous41md Linux - Security 6 12-23-2003 08:13 PM
a suggestion :) nautilus_1987 LQ Suggestions & Feedback 3 09-22-2002 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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