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.
Answer
- Make sure you have the correct permissions to install mongodb
- 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"
Attribution
Source : Link , Question Author : Sander Mangel , Answer Author : ciupinet