Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.