Marcos Roriz $:

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

Archive for the ‘Windows’ Category

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

Written by marcosroriz

February 20, 2011 at 10:17 am

Posted in Open Source, Windows

Tagged with