19

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?

0

7 Answers 7

14

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

3
  • Seems to be in the 32bit WAMP.
    – Benbob
    Apr 26, 2011 at 21:29
  • 4
    in case if you use php version 5.4.+ than you need to get another script pear.php.net/go-pear.phar
    – Zippp
    Feb 18, 2014 at 8:43
  • 1
    manifest cannot be larger than 100 MB in phar "C:\wamp64\bin\php\pyrus.phar" Jul 10, 2017 at 10:23
12

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.

1
  • 1
    The link i provided has some additional explanation of what to do. And provides and alternative to downloading the .phar file. Nov 26, 2013 at 7:06
1

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.

1

Firts export in the PATH system, add you folder with php, p.e. if you have php 5.4.x in your wamp system:

 PATH=...;C:\wamp\bin\php\php5.4.x;

Create a new folder p.e.:

C:\wamp\bin\php\pear\

If your php version is 5.3 or or newer you can use pyrus.phar.

Using pyrus.phar to install pear

php pyrus.phar install pear/PEAR-1.9.4

Export you PATH again:

PATH=....;C:\wamp\bin\php\pear;

you can use pear.bat, or pear.

pear.bat <arguments>

Check: for more information:

1

This worked for me on windows 7:

http://www.steptoinstall.com/install-pear-wamp-server-windows-7-8.html

NOTE: Make sure you open command prompt window in administration mode.

0

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.

0

How it worked for me is,

I went to the PEAR official site and clicked on this link which brings you to go-pear.phar source. Then I saved the file by right clicking on the web page, under my php7.4 ( this is the PHP version I have set on my ENV variables ) folder.

Next opened up the command line as admin and did CD to that folder and ran the following command php go-pear.phar.

This started the PEAR installation process and asked few questions. At the end I was asked to double click on "PEAR_ENV" reg file which was inside the php folder and done.

Hope this will helpful for someone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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