Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 04-26-2002, 08:54 AM   #1
Grim Reaper
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
How to compile source code...

If i download say the source code for Apache, how do i compile that into an executable?

is it a simple use of commands or are more difficult ways used?
Old 04-26-2002, 09:43 AM   #2
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
Normally itīs:
make install

(make install should be executed as root).
But it can be different for apache, there should be a readme or install document in the download.
Old 04-26-2002, 09:48 AM   #3
Grim Reaper
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
ahhhh...thats the way i installed samba but i never realised i had compiled it from source code!

so that compiles it AND installs it?

./configure configures it for your system?

make install
these two actually compile and install it???
Old 04-26-2002, 11:28 AM   #4
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
That's pretty much the jist of it. Configure, then make compiles and make install installs it. You can use different options with configure to put things in different directories and so forth also, if that's something you need. But defaults are almost always fine.


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
Anyone manage to compile the Quake 3 source code? black hole sun Linux - Games 14 01-09-2007 09:14 PM
Why can't FreeBSD compile anything from source code? mortal *BSD 5 03-21-2005 07:49 PM
how i compile a source code? nazib Linux - General 5 02-27-2005 09:13 AM
how to compile redhat 9.0 source code. wood Linux - General 5 09-16-2003 10:05 AM
How to compile and execute Doom 1.10 source code sharathkv Linux - Newbie 1 08-26-2003 03:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration