Marcos Roriz $:

Pessoal, Geek, Anime, Jogos, Ciência da Computação e Open Source…

How to Install PEAR on Windows 7

with 4 comments

I’ve just installed Windows 7 and one of the main problems is that I can’t get PEAR to work. So after lots of googling here is the solution to get it working:

  1. Uncomment the line in your php.ini file and set it to off:
     phar.require_hash = Off 
  2. Now as a admin start the cmd prompt and run go-pear.bat in the php dir (It will complain about Structures Graph).
    go-pear
  3. Now go to PEAR website and download manually the Structures Graph package.
  4. Extract the content of the package and move the Structures folder to the PEAR directory.
    move
  5. Issue “pear install Structures_Graph”. Even though the files are present, Structures_Graph is not really installed unless you issue the above command.
     pear install Structures_Graph 

    structuresgraph

  6. Issue “pear upgrade PEAR”. This upgrades PEAR itself to the current version.
     pear upgrade PEAR 

    upgradePear

  7. Issue “pear upgrade Console_Getopt”. This upgrades Console_Getopt to the current version.
     pear upgrade Console_Getopt 

Problem solved by: jjkramer @ http://www.pear-forum.org/topic2565.html

About these ads

Written by marcosroriz

February 20, 2011 at 10:17 am

Posted in Open Source, Windows

Tagged with

4 Responses

Subscribe to comments with RSS.

  1. My PHP came bundled with XAMPP so I uncommented the line in my C:\xampp\php\php.ini file, setting it to

    phar.require_hash= Off

    I then tried running C:\xampp\php\go-pear.bat
    This program died on the line 1236 of the file C:|xampp\php\PEAR\go-pear.phar
    where it encountered the statement:

    require_once ‘phar://go-pear.phar/index.php’;

    followed by the message:
    error: invalid url or non-existent phar “phar://go-pear.phar/index.php”

    William E. Zorumski

    September 21, 2011 at 8:00 pm

  2. I downloaded and installed a new “go-pear.phar file. Then it worked.

    William E. Zorumski

    September 22, 2011 at 7:50 pm

  3. Many thanks for this. I had tried many things and kept running into walls. Whether it was turning off the hash check or running as admin, or getting a new copy of phar, I don’t know, but it worked. It did complain about: Unable to load dynamic library ‘C:/PHP/ext\php_phar.dll’ several times, but each time I just hit enter and it went on. I read that this dll is now built in.

    I tried running go-pear from my (localhost) webserver and got complaints about no sockets. I forget how many other problems I tried to circumvent, but several hours later, this has worked!

    David

    September 6, 2012 at 3:00 pm

  4. Simply thanks…

    karsho

    March 3, 2014 at 11:46 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: