尝试PEAR通过运行go-pear.php(从cPanel GoDaddy托管帐户的根目录)安装时,我收到以下错误:
开始安装......加载zlib:好的
Bootstrapping安装程序...................
引导PEAR5.php ............(远程)确定
引导PEAR.php ............(远程)确定
Bootstrapping Archive/Tar.php ............(远程)确定
Bootstrapping Console/Getopt.php ............(远程)确定
致命错误:697行/home/alessio1/public_html/go-pear.php中未找到"PEAR"类
第697行如下:PEAR :: setErrorHandling(PEAR_ERROR_DIE,"\n%s \n");
该文件go-pear.php直接来自http://pear.php.net/go-pear,未经任何修改.
我究竟做错了什么?
Kev*_*inD 12
我有同样的错误,并设法解决它将$ 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',
);
Run Code Online (Sandbox Code Playgroud)