Install Pecl Windows

Active3 years, 11 months ago

Use 'pecl install oci8' to install for PHP 7. Use 'pecl install oci8-2.0.12' to install for PHP 5.2 - PHP 5.6. Use 'pecl install oci8-1.4.10' to install for PHP 4.3.9 - PHP 5.1. The OCI8 extension can be linked with Oracle client libraries from Oracle Database 12, 11, or 10.2. These libraries are found in your database installation, or in the free. Installing with PEAR/PECL is as easy as: # pecl install xdebug but you still need to add the correct line to your php.ini: (don't forget to change the path and filename to the correct one — but make sure you use the full path ). I don't understand how to install PECL extension on XAMPP via command line. I'm a Windows 7 user. I often see 'sudo' in the installation instruction. But, actually when I type the command, it.

I found a few related posts here but didn't get my answer. So posting again.
How would I install a PECL extension on windows? Say I want the PECL oAuth extension on Windows XP.
I know 2 methods, but none of them is working for me.

  1. The site http://pecl4win.php.net/ is down for months. So I cant download the DLL. Is there any place we can download the DLLs from ?

  2. running the command pecl install oauth-0.99.9.tgz is throwing the error
    The DSP oauth.dsp does not exist.
    I tried with few other extensions also and getting the same error.

What am I missing here?

Varun
VarunVarun
1,4466 gold badges21 silver badges48 bronze badges

6 Answers

Releases can now be found here:
http://windows.php.net/downloads/pecl/releases/

If you need an extension not available there you might ask on the pecl-dev at lists.php.net mailing list.

Community
johannesjohannes
13.6k1 gold badge35 silver badges55 bronze badges

I got what I am looking for in http://windows.php.net/downloads/pecl/releases/

Erwin KaddyErwin Kaddy

Currently PECL for windows is in an odd reformation state. The reason being that I believe they are trying to provide VS2008 source versions. I would actually suggest using Zend Server for now until the windows half of the php group gets everything fixed up. Zend Server includes almost all of the extensions that you can find in PECL, and everything else, if you are lucky, you could find an compile yourself.

Kevin PenoKevin Peno
8,2681 gold badge27 silver badges52 bronze badges

The PECL installer downloads the source code of the extension and tries to compile it with your local C compiler. The problem is that the whole process is designed for Unix systems, where a C compiler is available or can be easily installed. Setting an environment to compile C code under Windows is pretty complicate.

The ideal solution is getting a DLL file that someone already compiled. That's what the pcle4win site was for. However, there's currently no official repository to download PECL DLLs so you only have two alternatives:

  • Find an unofficial DLL somewhere in Google
  • Compile it yourself (another link) with Microsoft Visual Studio

It'd be cool that there was a DLL repository out there but I'm unaware of any.

Álvaro GonzálezÁlvaro GonzálezInstall Pecl Windows
111k32 gold badges203 silver badges290 bronze badges

The php source ships with a set of configuration scripts for windows (using windows script host) that mimics the autoconf tools as far as php is concerned. If you place the code for the extension in a directory under the /ext directory (where all the other extensions like bcmath, bzip, ... are located) you can let the buildconf-script create a makefile that includes the build rules for that (new) extension.
There's a step-by-step walk-through at http://wiki.php.net/internals/windows/stepbystepbuild which seems to be brief but feasible.

WindowsVolkerKVolkerK
85k15 gold badges149 silver badges216 bronze badges

compiled oauth: http://windows.php.net/downloads/pecl/releases/oauth/

another pecl extension: http://windows.php.net/downloads/pecl/releases/

ewwinkewwink
13.1k2 gold badges26 silver badges43 bronze badges

Not the answer you're looking for? Browse other questions tagged phpdllpecl or ask your own question.

Active8 years, 6 months ago

There are download sections for PECL extensions in http://pecl.php.net/ But I am not getting install steps for PECL *itself**. Following command does not work -

In my system, I have PECL installed, so I can install PECL extensions like this-

But, in a system where running pecl command does not recognize the same, how to install PECL first on a Fedora 7 system (old system).

Sandeepan NathSandeepan NathInstall
2925 gold badges9 silver badges26 bronze badges

Mac Install Pecl

1 Answer

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

Serty OanSerty Oan
4451 gold badge4 silver badges14 bronze badges

Install Pecl Windows Wamp

Not the answer you're looking for? Browse other questions tagged phppecl or ask your own question.