为什么我在安装 PEAR 时收到错误消息? [英] Why am I receiving an error when installing PEAR?

查看:65
本文介绍了为什么我在安装 PEAR 时收到错误消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 PEAR 以与 PHP 一起使用.当我阅读 http://pear.php.net/的安装说明时手册/en/installation.getting.php,我应该运行我在 C:\wamp\bin\php\php5.3.0 目录中的文件 go-pear.bat.根据我阅读的所有安装指南,它应该安装并询问我一系列安装问题,但我收到以下错误:

I am trying to install PEAR for use with PHP. As i read on the installation instructions at http://pear.php.net/manual/en/installation.getting.php , I am supposed to run the file go-pear.bat which I have in my C:\wamp\bin\php\php5.3.0 directory. According to all the installation guides I have read, it should install and ask me a series of installation questions, but I am receiving the following error:

phar "C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar" 没有签名PHP 警告:require_once(phar://go-pear.par/index.php):无法打开流:phar 错误:url 无效或不存在 pharphar://go-pear.phar/index.php"在 C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar 第 1236 行

警告:require_once(phar://go-pear.par/index.php):无法打开流:phar 错误:url 无效或不存在 phar "phar://go-pear.phar/index.php" 在 C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar 中的第 1236 行按任意键继续...

我不确定为什么会收到此错误.我最近刚刚安装了新的 Wampserver.

I'm not sure why I am receiving this error. I just installed the new Wampserver recently.

推荐答案

也许 这是您正在寻找的内容.

Maybe this is what you are looking for.

步骤如下:

1) 找到php.ini"文件.在我的案例,我在这个路径找到它:

1) Locate the "php.ini" file. In my case, I found it at this path:

C:\wamp\bin\php\php5.3.0\php.ini

C:\wamp\bin\php\php5.3.0\php.ini

不要使用 WAMP 系统托盘图标编辑这个文件.我的时候没用尝试过 - 您必须手动定位

Don't use the WAMP system tray icon to edit this file. It didn't work when I tried - you have to manually locate it.

2) 找到以下粗体行:

2) Find the following line, in bold:

;http://php.net/phar.require-hash;phar.require_hash= 开;http://php.net/phar.require-hash

;phar.require_hash = On

;phar.require_hash = On

3) 取消注释 ";phar.require_hash =On"行删除分号.

3) Uncomment the ";phar.require_hash = On" line by removing the semi-colon.

4) 将开"改为关".

4) Change "On" to "Off".

;http://php.net/phar.require-hash

phar.require_hash = 关闭

phar.require_hash = Off

5) 保存文件.

在我执行完这些步骤之后,go-pear.bat"开始正常工作再次.

After I performed those steps, "go-pear.bat" began working normally again.

这篇关于为什么我在安装 PEAR 时收到错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆