LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to compile source code... (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-compile-source-code-19515/)

Grim Reaper 04-26-2002 08:54 AM

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?

aliensub 04-26-2002 09:43 AM

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.

Grim Reaper 04-26-2002 09:48 AM

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???

taz.devil 04-26-2002 11:28 AM

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.


All times are GMT -5. The time now is 12:47 AM.