LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can i move the file aftere make install? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-move-the-file-aftere-make-install-256465/)

windefault 11-18-2004 11:23 AM

can i move the file aftere make install?
 
i am quite new to linux.ok.

after i untar a .tar.gz,a new file called 'a' being created(let say). Then, i ./configure , make, make unistall it.

after i do all these thing, can i move the file? let say from /home/abc to /root?

any effect ?

abisko00 11-18-2004 11:32 AM

Which file do you mean? The sources or the binary?

Mostly the binaries are being copied to somewhere like /usr/bin or /usr/local/bin, while the sources remain where you unpacked them (but they are usually not needed anymore, you can copy or delete them as you wish). Have a look in the makefile for the true location.

If you copy the binary to a different location (which should be OK), you should take care that this location is in your path. Otherwise it will not run without specification of the full path.

If you do not run make install, you could copy the binary yourself to the location you want them (or better run ./configure with a prefix for the desired location and use 'make install' for proper installation).

windefault 11-18-2004 12:03 PM

thx

some confuse.After i 'make install'' some new file created in my 'a',i don't think that is my binary file since i found a new executable file in /usr/local/bin .So can i remove the 'a' ? will this bring any effect?


what different between /usr/bin and /usr/local/bin?

thx

abisko00 11-18-2004 12:24 PM

The new file that have been created in 'a' come from the compilation process. Usually they are not needed anymore. Maybe there is some documentation you want to keep.

Quote:

what different between /usr/bin and /usr/local/bin?
I guess the difference is just about clarity. Put your own stuff in /usr/local/bin, system stuff is in /usr/bin. So you don't mess up the system


All times are GMT -5. The time now is 07:24 AM.