Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
    
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. –  Qsp Oct 17 '11 at 10:41
    
Thanks for the awnsers, @Phil: your comment did the trick. Thanks again! –  sandermangel 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
add comment

migrated from stackoverflow.com Oct 17 '11 at 13:42

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

2 Answers

  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 –  sandermangel Oct 21 '11 at 12:04
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.