Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install PEAR on Wampserver 2.2e

Status
Not open for further replies.
Jul 28, 2011
167
NG
Hello all,

I downloaded and install the latest version of wampserver on windows 7, 32-bits and after much tutorials, I realised the need for PEAR. Several tutorials said a PEAR directory was supposed to be bundled along with the wampserver installation; unfortunately that was not so. There is no PEAR directory anywhere on the default installation (c:\wamp).
So I went online again to seek solutions and downloaded go-pear.phar (go-pear.phar), placed it in the directory C:\wamp\bin\php\php5.4.3 and tried to install from the cmd but always get an error.
Code:
Beginning install...
PHP Fatal error:  Call to undefined method PEAR_Error::set() in pha
in/php/php5.4.3/go-pear.phar/PEAR/Start.php on line 301
PHP Stack trace:
PHP   1. {main}() C:\wamp\bin\php\php5.4.3\go-pear.phar:0
PHP   2. require_once() C:\wamp\bin\php\php5.4.3\go-pear.phar:1236
PHP   3. PEAR_Start_CLI->run() phar://C:/wamp/bin/php/php5.4.3/go-p
x.php:7
PHP   4. PEAR_Start->doInstall() phar://C:/wamp/bin/php/php5.4.3/go
AR/Start/CLI.php:57

Fatal error: Call to undefined method PEAR_Error::set() in phar://C
p/php5.4.3/go-pear.phar/PEAR/Start.php on line 301

Call Stack:
    0.1084     334256   1. {main}() C:\wamp\bin\php\php5.4.3\go-pea
    0.1093     328760   2. require_once('phar://C:/wamp/bin/php/php
.phar/index.php') C:\wamp\bin\php\php5.4.3\go-pear.phar:1236
    0.2550    1977136   3. PEAR_Start_CLI->run() phar://C:/wamp/bin
/go-pear.phar/index.php:7
   28.1505    1989104   4. PEAR_Start->doInstall() phar://C:/wamp/b
.3/go-pear.phar/PEAR/Start/CLI.php:57

What do I do?

____________________
Men put up a strong face just to cover their weaknesses...good!
But a smile makes them live longer....
Which would you choose?

Think about it.
 
I just opened the go-pear.phar in a text editor to examine its contents and found some garbage after the closing '?>' looking like this ",!îÄ;Ç>;vð‡á·¾‡($yLGBMB". I deleted the line and tried executing again.
Now I get this error
Code:
manifest cannot be larger than 100 MB in phar "C:\wamp\bin\php\php5.4.3\go-pear.
phar"PHP Warning:  require_once(phar://go-pear.phar/index.php): failed to open s
tream: manifest cannot be larger than 100 MB in phar "C:\wamp\bin\php\php5.4.3\g
o-pear.phar" in C:\wamp\bin\php\php5.4.3\go-pear.phar on line 1236
PHP Stack trace:
PHP   1. {main}() C:\wamp\bin\php\php5.4.3\go-pear.phar:0

Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: man
ifest cannot be larger than 100 MB in phar "C:\wamp\bin\php\php5.4.3\go-pear.pha
r" in C:\wamp\bin\php\php5.4.3\go-pear.phar on line 1236

Call Stack:
    0.0369     305960   1. {main}() C:\wamp\bin\php\php5.4.3\go-pear.phar:0

I hope I'm still ontrack?
 
After much troubleshooting, I stumbled upon this site blog.0x89b.org and realised that I only needed to change the C:\Windows\pear.ini to $prefix\pear.ini ....
....and it all worked.

Thanks all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top