解决PHP5.3安装PEAR错误: phar does not have a signaturePHP Warning

PHP5.3安装PEAR, 运行go-pear有的会出现下面错误:
引用
phar does not have a signaturePHP Warning:  require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar “phar://go-pear.phar/index.php” in …

不使用go-pear.bat,转而使用

解决方法一:
运行:
php -d phar.require_hash=0 PEAR/go-pear.phar


解决方法二:
http://pear.php.net/go-pear下载个没有打包的PEAR安装包存储到本地命名为go-pear.php
运行:
php go-pear.php


你可能感兴趣的:(PHP,.net,Go)