Created
January 16, 2013 22:07
-
-
Save lslucas/4551402 to your computer and use it in GitHub Desktop.
phpize and pecl problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo pecl install mongo | |
downloading mongo-1.3.3.tgz ... | |
Starting to download mongo-1.3.3.tgz (122,098 bytes) | |
...........................done: 122,098 bytes | |
49 source files, building | |
running: phpize | |
Configuring for: | |
PHP Api Version: 20090626 | |
Zend Module Api No: 20090626 | |
Zend Extension Api No: 220090626 | |
configure.in:36: error: AC_REQUIRE_AUX_FILE: requires a literal argument | |
aclocal.m4:124: PHP_CANONICAL_HOST_TARGET is expanded from... | |
aclocal.m4:1980: PHP_SHLIB_SUFFIX_NAMES is expanded from... | |
configure.in:36: the top level | |
autom4te: /usr/bin/m4 failed with exit status: 1 | |
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed | |
$ cd mongo-1.3.2/ | |
$ ls | |
acinclude.m4 bson.c collection.c config.m4 config.w32 db.c gridfs.h install-sh mcon mongo.c mongo.h php_mongo.c run-tests.php | |
aclocal.m4 bson.h collection.h config.sub cursor.c db.h gridfs_stream.c ltmain.sh missing mongoclient.c mongo_types.c php_mongo.h util | |
autom4te.cache build config.guess configure.in cursor.h gridfs.c gridfs_stream.h Makefile.global mkinstalldirs mongoclient.h mongo_types.h README.md | |
$ phpize | |
Configuring for: | |
PHP Api Version: 20090626 | |
Zend Module Api No: 20090626 | |
Zend Extension Api No: 220090626 | |
configure.in:36: error: AC_REQUIRE_AUX_FILE: requires a literal argument | |
aclocal.m4:124: PHP_CANONICAL_HOST_TARGET is expanded from... | |
aclocal.m4:1980: PHP_SHLIB_SUFFIX_NAMES is expanded from... | |
configure.in:36: the top level | |
autom4te: /usr/bin/m4 failed with exit status: 1 | |
$ locate phpize | |
/etc/alternatives/phpize | |
/etc/alternatives/phpize.1.gz | |
/usr/bin/phpize | |
/usr/bin/phpize5 | |
/usr/lib/php5/build/phpize.m4 | |
/usr/share/man/man1/phpize.1.gz | |
/usr/share/man/man1/phpize5.1.gz | |
/var/lib/dpkg/alternatives/phpize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment