如何使用 EasyPHP 5.3.8 安装 PEAR?
我正在学习 Yii 并关注 Jeffrey 撰写的电子书Winesett,该应用程序是基于 TDD 构建的.所以我需要安装 PHPUnit 来编写单元测试,这导致我发布帮助为我的 Windows 7 安装 PEAR(参考.链接 1, 链接 2).
I'm learning Yii and following ebook written by Jeffrey Winesett, the application is built upon TDD. So I need to install PHPUnit to write unit test, which leads me to posts help installing PEAR for my Windows 7 (ref. link 1, link 2).
在上述网站中,作者一直告诉在我的 EasyPHP 5.3.8 中使用 go-pear.bat
不存在,这也是最新的发言时的版本.
And in those above sites, the author keep telling to use go-pear.bat
which doesn't exist in my EasyPHP 5.3.8 which also be the latest version at the time of speaking.
即使在 这篇 EasyPHP 论坛帖子中我们也找不到答案.
Even in this EasyPHP forum post we cannot find the answer.
那么问题来了,如何用 EasyPHP 5.3.8 安装 PEAR?
So the question is, how to install PEAR with EasyPHP 5.3.8?
我正在使用:
- Netbeans PHP 7.0.1 作为 PHP 的 IDE.
- EasyPHP 5.3.8 作为 A M P 包
推荐答案
脚本 go-pear.php 不适用于某些新的 php 版本.我的解决方案:
the script go-pear.php doesn't work on some new php version. My solution :
从 http://pear.php.net/go-pear 将文件下载到 php 文件夹中.phar
(在管理员模式下使用 Windows 控制台)并从 php 文件夹类型:php go-pear.phar
(use the windows console in mode admin) and from php folder type : php go-pear.phar
相关文章