Link to home
Start Free TrialLog in
Avatar of Jonah11
Jonah11

asked on

PEAR missing from wamp

My final goal is to install phpunit for use with my wamp install.  The instructions for installing phpunit called for using PEAR, which was missing from wamp install.  The "go-pear.bat" file does not exist.

How can I get PEAR installed on wamp, and from there install phpunit?

Thanks,
Jonah
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Here's instructions http://www.wampserver.com/phorum/read.php?2,67257,printview,page=1 .   Back up your 'php.ini' first and make sure your entries use your paths instead of just copying the paths in the article.
Avatar of Jonah11
Jonah11

ASKER

The subdirectory PEAR does not exist at all in my install (latest from wamp website), so the instructions in that link don't help.
"go-pear.phar" is not the same between versions either so you probably can't copy the old one and have it work.  I don't see an immediate answer to your question.  I have WAMP 2.0 and the PEAR stuff is included with that version.  SourceForge has older version here: http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/
Avatar of Jonah11

ASKER

Ok,

I found an answer an here:

http://stackoverflow.com/questions/5796554/installing-pear-on-wampserver

and now I got PEAR mostly installed but not quite working.  When I hit the index.php page right below the PEAR directory I created:

http://pastebin.com/HFYR46gH

I get an error saying the $pear_dir is not defined.  to make the program load without error, I need to add these two lines:

$pear_dir = 'c:\wamp\www\PEAR\PEAR';
$pear_user_config = 'c:\wamp\www\PEAR\pear.conf';

and even then the pear management page that loads is full of deprecation errors and broken images.....
Avatar of Jonah11

ASKER

Also, in the original script, how does '@pear_dir@' have any hope of being defined?  What kind of variable is that?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jonah11

ASKER

Thanks for your help Dave.  I also ended up having to use the more recent go-pear.phar file to do the install, and this helped:

http://phphints.wordpress.com/2008/08/26/installing-pear-package-manager-on-wamp/#more-126
Thanks.  That's a good resource.