本文介绍了致命错误:在线697 /home/user1/public_html/go-pear.php找不到类'PEAR'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试通过运行 go-pear.php (从cPanel GoDaddy托管的根目录中安装 PEAR 帐户),我收到以下错误:

When trying to install PEAR by running go-pear.php (from the root of a cPanel GoDaddy hosted account), I get the following error:

Bootstrapping Installer ...................

Bootstrapping Installer...................

Bootstrapping PEAR5.php ..... .......(远程)ok

Bootstrapping PEAR5.php............(remote) ok

Bootstrapping PEAR.php ............(远程)ok

Bootstrapping PEAR.php............(remote) ok

Bootstrapping Archive / Tar.php ............(remote)ok

Bootstrapping Archive/Tar.php............(remote) ok

引导控制台/Getopt.php............(remote)ok

Bootstrapping Console/Getopt.php............(remote) ok

致命错误:类'PEAR'不发现在/home/alessio1/public_html/go-pear.php在线697

Fatal error: Class 'PEAR' not found in /home/alessio1/public_html/go-pear.php on line 697

行697如下:PEAR :: setErrorHandling(PEAR_ERROR_DIE,
\\\
%s\\\
);

line 697 is the following: PEAR::setErrorHandling(PEAR_ERROR_DIE, "\n%s\n");

文件 go-pear.php 直接从

我做错了什么?

推荐答案

我有同样的错误,并设法解决它将$ bootstrap_files中存储的链接替换为:

I had the same error, and managed to solve it replacing the links stored in $bootstrap_files to :

$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',
);

这篇关于致命错误:在线697 /home/user1/public_html/go-pear.php找不到类'PEAR'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 08:31