当试图通过运行go-pear.php(从cPanel GoDaddy托管帐户的根目录)安装PEAR时,我收到以下错误:
Starting installation … Loading zlib: ok
Bootstrapping Installer……………….
Bootstrapping PEAR5.php…………(remote) ok
Bootstrapping PEAR.php…………(remote) ok
Bootstrapping Archive/Tar.php…………(remote) ok
Bootstrapping Console/Getopt.php…………(remote) ok
Fatal error: Class ‘PEAR’ not found in /home/alessio1/public_html/go-pear.php on line 697
line 697 is the following: PEAR::setErrorHandling(PEAR_ERROR_DIE,
“\n%s\n”);
go-pear.php文件是直接从http://pear.php.net/go-pear获取的,没有任何修改.
我究竟做错了什么?
解决方法
我有同样的错误,并设法解决它将$bootstrap_files中存储的链接替换为:
$bootstrap_files = array( 'PEAR5.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR5.php','PEAR.php' => 'https://raw.githubusercontent.com/pear/pear-core/master/PEAR.php','Archive/Tar.php' => 'https://raw.githubusercontent.com/pear/Archive_Tar/master/Archive/Tar.php','Console/Getopt.php' => 'https://raw.githubusercontent.com/pear/Console_Getopt/master/Console/Getopt.php',);
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。