PEAR install weirdness

This morning i wanted to play around with firePHP a bit. And wanted to install the PEAR package. When i found out i didn’t have PEAR running on my local (win32 xp) box. So off to the pear install. The first thing i notice was that PEAR now is packaged as a nice PHAR file (PHP 5.2.6) . So i hoped the install process would be smoother then normally. This was not the case. First thing i did was run the go-pear.bat file. Which resulted in an error.

phar “[path]go-pear.phar” does not have a signature
Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha
r “[path]go-pear.phar” does not have a signature in [path]\PEAR\go-pear.phar on line 1236

Fatal error: require_once(): Failed opening required ‘phar://go-pear.phar/index.
php’ (include_path=’.;[path][path]\PEAR’) in [path]\PEAR\go-pear.phar on line 1236

Ok. So that didn’t work out like i wanted. I checked the go-pear.bat file. And copied the command to windows command line. This resulted in the same error. So i thought. Let’s try this from the PEAR directory. cd PEAR and let’s try that again.

php.exe -d phar.require_hash=0 go-pear.phar

Now the PEAR install runs fine.

For more information about PEAR, see:

http://pear.php.net/faq.php

http://pear.php.net/manual/

Thanks for using go-pear!

Update *

Although this solution seems to have resolved the problem for me. Cal Evans has a good post how to resolve this issue as well. My workaround didn’t solve the problem for Cal but his did for me. So here’s the link

del.icio.us Digg DZone reddit SlashDot StumbleUpon Technorati

6 Responses to 'PEAR install weirdness'

Subscribe to comments with RSS or TrackBack to 'PEAR install weirdness'.

  1. [...] some quick googeling around found me this possible solution from Thijs Lensselink. I tried it, nope, would not work. However, it did lead me down the correct [...]

  2. [...] some quick googeling around found me this possible solution from Thijs Lensselink. I tried it, nope, would not work. However, it did lead me down the correct [...]

  3. [...] decision on the platform (XAMPP), version of PHP to use and some googling around that lead him to this and this to help resolve his problem. It turns out that, if that’s on, for security [...]

  4. [...] – decision on the platform (XAMPP), version of PHP to use and some googling around that lead him to this and this to help resolve his problem. It turns out that, if that’s on, for security [...]

  5. It worked for me. I had to add the php folder to the windows path first.

    Thanks!

    juanito

    29 Dec 09 at 15:38

  6. I will add your blog to my RSS Feed! Thx.

    Gorden

    9 Apr 10 at 20:43

Leave a Reply