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 07-29-2004, 02:39 PM   #1
lyar1031
Member
 
Registered: Jul 2004
Posts: 54

Rep: Reputation: 15
make and make install


Here is my question?

Lets suppose I do the following as super user:
1. ./configure
2. make
3. make install


the above will install the application as root for "user" and "group" c

how is it different if I do (I am now logged in as myself)
1. /configure
2 make
3. su /* log in as su */
4. make install

my question is when I install an application is it better to do everything as su or ONLY be su when I do a make install?

Thanks
 
Old 07-29-2004, 02:41 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
either way is fine.
 
Old 07-29-2004, 02:45 PM   #3
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
Exclamation

the number one rule of linux computing:

refrain from computing as root as much as possible


it doesn't matter if you configure/compile as a local user, but you must be root to install. just make sure you set the proper permissions for normal users to be able to run the application if you wish for them to do so, or if make doesn't do it for you.


enjoy!!!


 
Old 07-29-2004, 03:30 PM   #4
lyar1031
Member
 
Registered: Jul 2004
Posts: 54

Original Poster
Rep: Reputation: 15
OK thanks, 1 last question, after doing a ./configure; make; make install

How do I uninstall, does a make clean do it?
 
Old 07-29-2004, 03:33 PM   #5
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
make clean simply cleans out the complied objects in the source directory.... i have been lucky and the author put a make uninstall in the Makefile. if you can't do make uninstall, you will have to look through the Makefile and find which files it installed to and where at.



hope i could help!!!! enjoy!!!





 
Old 07-29-2004, 03:35 PM   #6
Corona4456
Member
 
Registered: Jul 2004
Distribution: SuSE 9.1
Posts: 66

Rep: Reputation: 15
You may have to go into the directories that it was installed and do it yourself. However, I've seen some make files that have an uninstall option such as 'make uninstall' but this is rarely seen. As far as make clean... I believe all that does is it cleans up all the object files and executables in the directory that you did all the compiling in.


Err... what linuxlastslonge said... hehe... pretty much the same thing

Last edited by Corona4456; 07-29-2004 at 03:37 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
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM
make; make install commands in SuSE Linux 9.1 Personal johnerskine Linux - Newbie 6 06-23-2004 10:18 AM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM

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

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