php PEAR install 安装问题

In: PHP

1 2011

在执行

C:\>cd wamp\bin\php\php5.2.5

C:\wamp\bin\php\php5.2.5>go-pear.bat

会出现下面错误

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

解决方法:

进入:cd PEAR目录

然后执行:php.exe -d phar.require_hash=0 go-pear.phar

这样就可以顺利执行

Comment Form

About this blog

QK31欢迎你的到来.

Photostream