public
Created

phpize and pecl problem

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
$ 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.