Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Well, you will need gcc and make :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.