I'm going to install PHP and Apache, and instructions say: "You need a respectable ANSI-C compiler and build system,two items that are available through all of the major distributions' package managers", so I checked out Ubuntu's synaptic package manager, but I'm not sure whether these two are enabled by default.

link|improve this question
feedback

migrated from stackoverflow.com Aug 22 '11 at 6:46

This question came from our site for professional and enthusiast programmers.

4 Answers

If you know this little about the build process, I wouldn't go compiling Apache and PHP.

Instead, install Ubuntu's precompiled packages like this:

sudo apt-get install apache2 php5

If you still want to go ahead with compilation, the other answers are what you're looking for.

link|improve this answer
feedback

In Ubuntu the meta package that will install the tools you need is called build-essential. It will install gcc, make, and some header files.

link|improve this answer
feedback

As far as I know, this should be as simple as sudo apt-get install gcc to install the GNU C compiler which should work for your purposes.

You may also need build-essential.

link|improve this answer
feedback

Well, you will need gcc and make :)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown