LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-22-2005, 09:07 AM   #1
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Rep: Reputation: 0
give a NEWB a crash course in Compiling APPS


Hello all,

I am fairly new to linux, but with the help of this forum I've learned a great deal! (THANK YOU ALL). Heres the deal I want to be able to install just about any program I want to on my linux box (fedora core 3) I can install a simple RPM or a couple of RPM's that depend on one another, No problem! But not all programs are that easy are they? I want to get my hands dirty and learn the nuts and bolts of how to build a program from scratch. Which I'm sure gives you a much greater understanding of whats going on when an app launches ect......

I am not a programmer but do understand what syntax is. I know what a variable is, param on and on and on. I have a basic understanding of how things get done, I've just not reached the level where I can MAKE them get done. But a good start I think will be to learn how to manipulate, handle and compile linux programs.

So All I want to know is WHERE TO START? I've had great luck with you guys, and I learn so much easier with your help! What are the basic commands? is BASH used? (another thing I've got to learn). Does anyone know of any websites dedicated for this type of thing? I've done searches but just get so floded with non-related, partially-related and allmost-related info it boggs me down. I think part of my problem is I dont know exzactly what I'm searching for?

thank you all for your time and energy.
 
Old 02-22-2005, 10:00 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,458

Rep: Reputation: 45
Well, basically, you would:

Download the tarball (the zipped archive of source code)

Then from the BASH prompt:

gunzip tarball.gz
or
bunzip tarball.bz

depending on what zip method was used

tar xvf tarball

cd tarball

./configure

make

make install


Unless you want to fiddle with compilation options, or the source code is unusual, those are the steps you'll generally want to take.

A read thru the LFS handbook can teach you a lot about compiling. So can creating an LFS system, of course, but it takes a while
 
Old 02-22-2005, 10:38 AM   #3
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up THANK YOU!

Thank you verry much! I didnt realise it was that simple LOL !?! I thought it works somthing like java beans? I've yet to use the "makefile" command but will experiment later this evening.

Thanks agian!
 
Old 02-22-2005, 10:58 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Another way is

$tar -zxvf filename.tar.gz for gzipped files
or
$tar -jxvf filename.bz2 for bzipped files
then
$./configure
$make
#make install

Sometimes *tar.gz are named as filename.tgz and *tar.bz2 files are named as filename.tbz, so don't get confused by this. Always read the documentation before installing, coz it usually includes essential information on how to install etc. For linux commands take a look at linuxcommand.org.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
KDE apps crash YellowFin Linux - Software 5 06-19-2005 10:06 PM
Several Apps Crash Back to Login-Manager electronique Slackware 6 11-19-2004 08:03 AM
KDE apps give icon warnings David the H. Debian 9 07-21-2004 03:30 AM
Windows Apps - Total Newb Nashy Linux - Software 15 06-01-2004 02:37 PM
All KDE apps crash mbant Linux - Software 0 10-13-2003 02:21 PM


All times are GMT -5. The time now is 02:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration