All the guides for installing PEAR on wampserver, such as the Symfony guide, say I am to run a go-pear.bat script within some PEAR directory. I am on wampserver 2.1 and there is no PEAR directory. Installing PEAR on Windows 7 seems simple; however, a few headaches with some recent versions of PHP can leave some people confused. The go-pear.bat file doesn’t exist in some 64x downloads of WAMP and PHP. By following these steps to workaround this issue, you should be able to get Pear installed.
I am trying to install pear in wampserver. It doesn't come with a go-pear.bat.
I download the .phar file from pear.php.net/go-pear and run php go-pear.phar.
- When using PHP, the PEAR Package Manager is already. Copy go-pear.php to your server and open the. I've tried to install by go-pear on Windows command line.
- Step 1: install PEAR on WAMP server In CLI go to the path where you have installed PHP on the WAMP sever, for me is C: wamp bin php php5.4.12. Here you should have the go-par.phar file. If this file is not here you should get it from here and save it in the path where you have installed PHP and then run the following command.
- Try this: Although a PEAR subdirectory is created during WAMP installation, PEAR is not included with the Wampserver. To install PEAR open a command prompt window (Start->Run->cmd.
- I'm having problems installing pear on my local machine that has Wamp installed. Full setup as follows Windows XP Pro Wamp Server Version 2.0 php 5.3.0 I'm reading all over the net that pear has.
- If you need to run php scripts on Windows Command Prompt, you will need to install PEAR. If you already have installed WAMP Server, then you already have a copy of php installed, which can be find in your wamp directory such as below: C: wamp bin php php5.5.12 Installing PEAR 1.
It just keeps looping over the config where I set all the paths.
Lets assume you are running PHP5.3.24 and wamp is installed on the C: drive, if not change the folder names accordingly.
Get go-pear.phar from http://pear.php.net/go-pear.phar and copy it to the wampbinphpphp5.3.24 folder
Do all this from a windows command window
When you get asked this question
To get it to proceed with the install you have to just PRESS the ENTER key
Its as simple as that
I faced the same issue, if you scroll a bit back, you should see an error, probably you didn't fill the
php.exe folder properly (
number 12). Just type
enter and navigate to you PHP installation folder (like
C:/php). Then, after hitting
enter, installation should start.
local after running
Install Php Pear In Windows Wamp Server 32-bit
Then go with what Pedro Lobito said.
If the list shows again, just press
Enter and installation should start.
Not the answer you're looking for? Browse other questions tagged phpwamppear or ask your own question.
All the guides for installing PEAR on wampserver, such as the Symfony guide, say I am to run a go-pear.bat script within some PEAR directory.
I am on wampserver 2.1 and there is no PEAR directory and no go-pear batch script to be found.
Is this just different because I have a newer version? Is there somewhere I can download these missing installation scripts?KeyoKeyo
Installing Wamp On Windows
It's not installed per default on all setups.
But you can download the plain go-pear script for that: http://pear.php.net/go-pear
Either invoke it with
php.exe go-pear or run it through your webserver as regular .php script. (It has a nice installation GUI!)
Rather new to pear myself, but my answer to a similar question:Running Wampserver 2.2 on Win7 Professional 64bit working with PHP 5.3.8 I have found a few issues with standard way of installing with go-pear. I downloaded the go-pear.phar and ran that via cmd with no deprecated errors etc.Benjamin
you could also just go to the pear site, download the zips and unzip them in the correct local folders (wamp/bin/php)
we've just solved a similar problem like this, where a copy of a live site set up on a local machine was hitting errors because PEAR was not installed. The installation process was hitting errors so we just downloaded and unzipped PEAR and the required modules directly into the correct directory.
problem solved.Toni LeighToni Leigh
Firts export in the
PATH system, add you folder with php, p.e. if you have php 5.4.x in your wamp system:
Create a new folder p.e.:
If your php version is 5.3 or or newer you can use pyrus.phar.
Using pyrus.phar to install pear
you can use pear.bat, or pear.
Check: for more information:
This worked for me on windows 7:
NOTE: Make sure you open command prompt window in administration mode.
I downloaded the 32bit wamp and this includes the pear files. However it is best to install 1.9.2 by downloading
go-pear.phar manually, as the default one didn't seem to work.