Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install mongoDB on my CentOS 5.5 32bits VPS server which is going without any trouble until I try to install the PHP driver.

Logged in as root i do

$ pecl install mongo

Resulting in the error

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.

I tried to manually download it from github but when executing a phpize on that one I get the same error.

Hopefully someone can help me with installing the driver.

share|improve this question

migrated from Oct 17 '11 at 13:42

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

Voting to move to ServerFault. In the meantime, try installing autoconf, make and gcc via yum – Phil Oct 14 '11 at 13:27
I agree that you'll surely have better luck on serverfault. you could also install mongo via yum. maybe this helps. – Bruno Flávio Oct 17 '11 at 10:41
Thanks for the awnsers, @Phil: your comment did the trick. Thanks again! – Sander Mangel Oct 21 '11 at 12:03
@Phil, can you post your comment as an answer so that sandermangel can accept it? – dsolimano Oct 28 '11 at 12:52
@dsolimano done, thanks – Phil Oct 28 '11 at 22:36
  1. Make sure you have the correct permissions to install mongodb
  2. Install the development tools (quite a lot of packages to install, you may want to install only some if you have a low bandwidth or not enough disk space): yum groupinstall "Development Tools"
share|improve this answer
Thanks for the awnser, i managed to do it by installing try installing autoconf, make and gcc via yum and then $sudo pecl install mongo – Sander Mangel Oct 21 '11 at 12:04

Try installing autoconf, make and gcc via yum, then sudo pecl install mongo

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.