LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make and make install (https://www.linuxquestions.org/questions/linux-newbie-8/make-and-make-install-211139/)

lyar1031 07-29-2004 02:39 PM

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

rgiggs 07-29-2004 02:41 PM

either way is fine.

linuxlastslonge 07-29-2004 02:45 PM

the number one rule of linux computing:

refrain from computing as root as much as possible :tisk:


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!!!


:Pengy:

lyar1031 07-29-2004 03:30 PM

OK thanks, 1 last question, after doing a ./configure; make; make install

How do I uninstall, does a make clean do it?

linuxlastslonge 07-29-2004 03:33 PM

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!!!





:Pengy:

Corona4456 07-29-2004 03:35 PM

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


All times are GMT -5. The time now is 03:13 PM.