Tag Info

Hot answers tagged

15

You need to install the ImageMagick devel package. In Ubuntu try: sudo apt-get install libmagickwand-dev libmagickcore-dev


7

You are correct, you can't install the PECL package because as of PHP 5.3 Intl is part of PHP. If you installed PHP using YUM, you can just pull down the intl package: > yum list php*intl > yum install <file_from_above>


7

sudo yum install libicu sudo yum install libicu-devel.x86_64 sudo /usr/bin/pecl install intl sudo echo 'extension=intl.so' >> /etc/php.ini And you are good to go. And better enter the extension=intl.so manually to php.ini or even more elegant create a new .ini file in the /etc/php.d/ directory.


7

yum install pcre-devel . You need the Perl-compatible regular expression library development header files You mention Ubuntu, might as well use apt-get install libpcre3-dev


7

My guess would be either: pecl install mongo is actually installing a pre-built binary (which would be really dumb, but wouldn't be nearly as surprising); or You've still got the old php5-dev package from your 5.3 installation sitting around, and pecl is finding and using that instead of the 5.4 version. Take a look at your PHP-related packages list (dpkg ...


6

If you have the (patched) extension source code locally you can bypass PECL entirely: # cd extension_dir # phpize # ./configure # make # make install (phpize is a binary that comes with PHP - It prepares the extension to be compiled, the rest is pretty straightforward).


5

APD doesn't compile with PHP 5.3. See bug. Try apply patch. Edit apd-1.0.1/php_apd.c, change this line: CG(extended_info) = 1; to CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;


5

To just accept the defaults, you may use this: printf "\n" | pecl install memcache Found here.


4

Look at your phpini file paths: Configuration File (php.ini) Path => /etc/php5/cli Loaded Configuration File => /etc/php5/cli/php.ini CLI is the Command Line interface. Check phpinfo() from your webserver and edit the correct php.ini.


4

For anyone else who may have arrived here looking for an answer but the accepted one didn't fit your case - I may have your solution! I didn't have a setup problem - at least not to my knowledge. I am running nginx + php5-fpm. My php.ini file was correctly configured and all my other extensions were working properly - test it with phpinfo() or php --ini. ...


3

Try installing package libevent-dev sudo apt-get install libevent-dev


3

This issue is fixed in 3.1.0RC1 and 3.1.0RC2, but those are still beta (at the present time), so if you're getting this error, it's probably trying to install imagick 3.0.1 which has this problem. So instead of using "pecl install imagick", get the beta version instead: pecl install imagick-beta


3

Set a different temporary directory on a filesystem on which you can execute binaries. For instance: mkdir /root/tmp pecl config-set temp_dir /root/tmp or: pear config-set temp_dir /root/tmp


3

Your actual issue is that pecl can't find autoconf: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. Try searching on that basis and you should find what you need - it seems that at least once person has just compiled and installed autoconf: wget ...


3

I was finally able to solve this myself. I ended up doing: apt-get remove graphicsmagick-libmagick-dev-compat imagemagick imagemagick-common apt-get autoremove Then: apt-get install libmagickwand-dev And finally was able to get imagick installed via pecl without error: pecl install imagick-beta


3

Your error reads: PHP Fatal error: PHP Startup: To prevent data corruption, you are not allowed to turn on the mongo.native_long setting on 32-bit platforms in Unknown on line 0 The key here is the mongo.native_long setting. Seems like your OS is 32-bit, but this specific setting requires a 64-bit OS. The best long-term solution for you if this is ...


3

Just install autoconf manually: As per http://developer.casgrain.com/?p=125, Download the latest release http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz Extract the files do a normal ./configure; make; sudo make install;


3

This worked for me on Centos 5.6 yum install gcc gcc-cpp gcc-c++ After that all errors to do with intl disappeared


3

I was having the same `make failed' problem and installing pcre solved my problem apt-get install libpcre3-dev


2

I know this is an old post but thought I would answer it as I have just come across the same error and had to fix it. Not sure if you found this patch on your travels but it worked for me. The link bellow will lead you to patch that should fix this build error http://pecl.php.net/bugs/bug.php?id=16727&edit=1


2

Let you try the blow commands. % pecl download apd-or-whatever % tar zxvf *** % cd the-directory % /Applications/MAMP/bin/php5/bin/phpize % ./configure CFLAGS="-arch i386" --with-php-config="/Applications/MAMP/bin/php5/bin/php-config" % make % make install I'm using MAMP1.8.4 with manually compiled PHP5.3.2. In MAMP1.9.x, the paths of phpize and ...


2

to install libssh2 on centos follow the next steps: download libssh2 from the official website (look for in google - i don't have reputation and can't post but 1 link) extract it somewhere, then open a terminal and go in the folder where you extracted it and type these commands ./configure make make install ALSO you can install the rpmforge repos ...


2

Do you have macports installed? if so do a port install autoconf that should fix you up.


2

go to the pecl xdiff directory, open xdiff.c remove the word 'static' from line 39. it's already defined in the macro in the following line. save, phpize, configure, make, make install, be happy :)


2

Permission denied to Perl? Do you have SELinux enabled or something else funny going on? Have you done something odd such as chmod 000 /usr/bin/perl?


2

This is actually a PECL bug. ( http://pecl.php.net/bugs/bug.php?id=16746 ) The solution is given on the PECL page.


2

This is what worked for me. Tested on a Debian Squeeze amd64 installation: $ php -d suhosin.executor.include.whitelist="phar" go-pear.phar


2

Its windows I guess (from c:\xampp\php). So pecl would not work as it compiles the extension and for it needs, a c compiler, php headers and other stuff. The easiest way is to download a prebuilt dll and add it to your extensions dir. I have also installed xampp on my win dev machine and done the same thing. Grab the appropriate dll from ...


2

Install libmemcached-devel # yum install libmemcached-devel


2

No need to use pecl. Install memcached extension module for PHP5: $ sudo apt-get install php5-memcached test.php: <?php $m = new Memcached(); $m->addServer('127.0.0.1', 11211); var_dump($m->getStats()); ?> $ php test.php array(1) { ["127.0.0.1:11211"]=> array(24) { ["pid"]=> int(2462) ...



Only top voted, non community-wiki answers of a minimum length are eligible