Questions tagged [pecl]

PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.

828 questions
10
votes
1 answer

PHP abandons SQlite?

The SQLite extension is enabled by default as of PHP 5.0. Beginning with PHP 5.4, the SQLite extension is available only via PECL. Ok, I'm relatively new in PHP programming, and I was wondering what does this quoted information from official PHP…
Miloš Đakonović
  • 3,751
  • 5
  • 35
  • 55
9
votes
3 answers

Pecl extension compile error for php 7.4 on MacOS

I am trying to install pecl mongodb and memcached extensions on the latest Mac OS for php 7.4. Get same errors: pecl install memcached ... creating libtool appending configuration tag "CXX" to libtool configure: patching config.h.in configure:…
Stark
  • 525
  • 7
  • 12
9
votes
1 answer

pecl: command not found on macbook

my php version is 7.3.1 I can see the pecl is installed on my mac but . whenever I am trying to access it through the terminal, it says pecl:command not found. Please help me with the same.
9
votes
2 answers

How to install http_pecl on PHP 5.x?

I am trying to install pecl_http on Ubuntu 14.04, however it reports to require PHP 7. $ sudo pecl install pecl_http pecl/pecl_http requires PHP (version >= 7.0.0), installed version is 5.5.9-1ubuntu4.14 pecl/raphf requires PHP (version >= 7.0.0),…
techraf
  • 64,883
  • 27
  • 193
  • 198
9
votes
1 answer

Recompile PHP with ZTS enabled on Ubuntu

I am trying to install pthreads by using pecl install pthreads But I got this error during the installation configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled I have searched for this error. It seems that I have to…
xlKD
  • 169
  • 1
  • 3
  • 13
9
votes
2 answers

How do I enable the PHP HTTP PECL extension on Windows?

I have an installation of XAMPP version 1.7.3 on Windows 7 x64. I want to enable the PHP HTTP extension. How do I go about doing so? That is, where to I get the DLL, register it, etc. Thanks in advance.
Amir Khawaja
  • 459
  • 1
  • 6
  • 13
9
votes
4 answers

Installing pecl_http in xubuntu

As per title, I am simply trying to install pecl_http extension for php in ubuntu. So I did what makes most sense: andreas@earl ~ $ sudo pecl install pecl_http downloading pecl_http-1.6.6.tgz ... Starting to download pecl_http-1.6.6.tgz (173,645…
Andreas Wong
  • 59,630
  • 19
  • 106
  • 123
9
votes
4 answers

How to check if PECL extension is present?

How do I from PHP code if a PECL extension is installed or not? I want gracefully handle the case when an extension is not installed.
Prof. Falken
  • 24,226
  • 19
  • 100
  • 173
8
votes
3 answers

PECL install fails

I have browsed every Google result, read all the forum posts about this error, but I cannot solve it. When using PECL install for anything, I always end up getting this error: checking whether the C compiler works... configure: error: cannot run C…
James
  • 5,942
  • 15
  • 48
  • 72
8
votes
3 answers

PECL install failed

after upgrading from PHP5.2.6 to php 5.3. it seams, I also have to reinstall the PHP memcache-module. So I downloaded the newest version of memcache (3.0.6) and followed this documentation: http://www.php.net/manual/en/install.pecl.pear.php pecl…
The Bndr
  • 13,204
  • 16
  • 68
  • 107
8
votes
4 answers

Compiling PHP Intl extension on Mac Book Pro (El Capitan 10.11.4)

I am trying to install the PHP Intl extension on my new Mac (El Capitan 10.11.4) using PECL, but there is a linking error during the make stage. Here are the steps I took: Installed PEAR to run on Mac Compiled and installed the ICU library (version…
Biagio Arobba
  • 1,075
  • 11
  • 27
8
votes
2 answers

error: failed to write, failed to open stream, pecl install oauth on mac osx el capitan

I'm trying to install OAuth version 1.2.3 locally with pecl install (running PHP 5.6.10 on Mac OSX El Capitan). Running the following in command prompt: sudo pecl install oauth-1.2.3 Installation starts fine and runs without errors up until build…
M Brus
  • 81
  • 1
  • 3
8
votes
8 answers

pecl install cassandra throws: "error: Unable to load libcassandra"

pecl install cassandra produces an error: configure: error: Unable to load libcassandra ERROR: `/tmp/pear/temp/cassandra/configure' failed This error message is subject of another question here on SO, but has not been resolved: Installing php…
Tobias Gassmann
  • 11,399
  • 15
  • 58
  • 92
8
votes
3 answers

Renaming Functions during runtime in PHP

In PHP 5.3 is there a way to rename a function or "hook" a function. There is the rename_function() within "APD" which has been broken since ~2004. If you try and build it on PHP 5.3 you'll get this error: 'struct _zend_compiler_globals' has no…
rook
  • 66,304
  • 38
  • 162
  • 239
8
votes
4 answers

Can't get http to work in php

I keep getting this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/http.so' - /usr/lib64/php/modules/http.so: undefined symbol: php_persistent_handle_abandon in Unknown on line 0 PHP Fatal error: Class…
Robby Grodin
  • 145
  • 1
  • 2
  • 9