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
How can I get PEAR installed on wamp, and from there install phpunit?
Thanks,
Jonah
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.
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/
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.con f';
and even then the pear management page that loads is full of deprecation errors and broken images.....
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.con
and even then the pear management page that loads is full of deprecation errors and broken images.....
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
http://phphints.wordpress.com/2008/08/26/installing-pear-package-manager-on-wamp/#more-126
Thanks. That's a good resource.