LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   give a NEWB a crash course in Compiling APPS (http://www.linuxquestions.org/questions/linux-software-2/give-a-newb-a-crash-course-in-compiling-apps-293388/)

rpmheadache 02-22-2005 10:07 AM

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.

oneandoneis2 02-22-2005 11:00 AM

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 :)

rpmheadache 02-22-2005 11:38 AM

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!

reddazz 02-22-2005 11:58 AM

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.


All times are GMT -5. The time now is 03:42 PM.