LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   websights on compiling (https://www.linuxquestions.org/questions/linux-software-2/websights-on-compiling-94067/)

Raiden_12 09-18-2003 01:49 AM

websights on compiling
 
im new to the world of linux, coming straight from a windows background, are there any websights explaining how to compile software, i dont have the first clue on how to compile programs downloaded from the internet, im running redhat 9.0

thanks in advance

guygriffiths 09-18-2003 04:05 AM

If you want to install software from source, it usually comes in .tar.gz format. What you would do is this:

Open a console window
Make sure the .tar.gz file is in your home directory, or even better, make a specific source directory, and move the file into there:

mkdir ~/src
mv filename ~/src


Then you need to decompress it. Go to the sourcce directory:

cd ~/src
tar xvzf filename


This should have created a new directory for you, similar to the name of the .tar.gz file
Enter that directory with:
cd dirname
and type:
./configure
make
su
Will prompt for root password
make install
exit
To get out of su mode.

You should then be able to run the program by typing its name. More instructions are almost always given in the file INSTALL which is found in the ~/src/dirname directory.

./configure configures everything, and if there are likely to be problems with dependencies etc., they should show up there, with a brief explanation of what the problem if (usually you need another library/an updated version of something)

To uninstall a program, simply go into the directory in which you un-tarred it, and type:
su Again, prompts for root password
make uninstall

Hope this helps
Guy

Raiden_12 09-20-2003 09:40 PM

yep it sure did thanks very much for that :)


All times are GMT -5. The time now is 09:58 AM.