LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-26-2002, 09:54 AM   #1
Grim Reaper
Member
 
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, 10:43 AM   #2
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
Normally itīs:
./configure
make
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, 10:48 AM   #3
Grim Reaper
Member
 
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
make install
these two actually compile and install it???
 
Old 04-26-2002, 12:28 PM   #4
taz.devil
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration