Tag Info

Hot answers tagged

19

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


11

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 ...


8

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


8

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

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

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).


6

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. ...


6

I came across this error after updating my PHP installation to 5.5.14, on RedHat EL v6. I had installed PHP via the Yum package manager, and then needed to re-install some of the PHP extensions I was using. In searching for tips on how to solve this issue, I came across this question, and now that I have discovered a working solution I wanted to share my ...


5

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


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;


4

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


4

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 ...


4

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;


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

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

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

Maybe a little late, but perhaps this helps someone else landing here... Insure that you are referencing the correct version of the pecl_http API. They moved to namespaces in v2, so the calling convention is quite different. Much of the documentation around on the web references methods in v1. http://devel-m6w6.rhcloud.com/mdref/http


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

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

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


3

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) ...


2

configure script can have a hard time determining the V8 version if you don't have V8 installed in the usual location (directly in /usr or /usr/local). I used: export CXXFLAGS="-I/usr/local/mydir/include -Wl,--rpath,/usr/local/mydir/lib" before running the configure script ( --with-v8js=/usr/local/mydir ) so that it could find the v8 version. Really it's ...


2

Seems to me that you should do yum install php-pear to get pecl on your OS, not yum install pecl.


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

Install libmemcached-devel # yum install libmemcached-devel


2

PHP 5.3 can't compile with this package.


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



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