标签:
1. 安装PHP,确保能使用能在命令行使用php命令;
C:\Users\YangLong>php -v PHP 5.6.4 (cli) (built: Dec 17 2014 13:20:35) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans
2. 下载 https://pear.php.net/go-pear.phar ,并存储到c:\php\go-pear.phar;
3. 运行php go-pear.phar安装,你会看到一些提示,直接回车就好;
4. 检查PEAR是否工作
C:\Users\YangLong>pear version PEAR Version: 1.10.1 PHP Version: 5.6.4 Zend Engine Version: 2.6.0 Running on: Windows NT YANGLONGPC 6.2 build 9200 (Windows 8 Enterprise Edition) i586
5. 验证include path
C:\Users\YangLong>pear config-get php_dir C:\php\pear
Windows下获取和安装PEAR包管理器 Getting and installing the PEAR package manager
标签:
原文地址:http://www.cnblogs.com/longzhu/p/5561769.html