LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2003, 01:49 AM   #1
Raiden_12
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
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
 
Old 09-18-2003, 04:05 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
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
 
Old 09-20-2003, 09:40 PM   #3
Raiden_12
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
yep it sure did thanks very much for that
 
  


Reply



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
Help with my first compiling? Will Sjorensen Linux - Newbie 9 04-22-2005 05:27 PM
Compiling ? Trollop Linux - Newbie 1 02-08-2005 12:49 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:15 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
Open Source Consulting | Domain Registration