?
Solved

PEAR missing from wamp

Posted on 2011-05-04
8
Medium Priority
?
1,030 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:Jonah11
  • 4
  • 4
8 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 35695347
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.
0
 
LVL 7

Author Comment

by:Jonah11
ID: 35695474
The subdirectory PEAR does not exist at all in my install (latest from wamp website), so the instructions in that link don't help.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 35696015
"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/
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 7

Author Comment

by:Jonah11
ID: 35696211
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.....
0
 
LVL 7

Author Comment

by:Jonah11
ID: 35696216
Also, in the original script, how does '@pear_dir@' have any hope of being defined?  What kind of variable is that?
0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 35700549
'@pear_dir@' is supposed to be replaced by the install script with the path to the PEAR install directory.  The install directory should have been "C:\wamp\bin\php\php5.3.0\PEAR\"
0
 
LVL 7

Author Comment

by:Jonah11
ID: 35710094
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
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 35710509
Thanks.  That's a good resource.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question