[转]Windows中PHP_PEAR_PHP_BIN is not set correctly的解决方法
来源:互联网 发布:免费发贴软件 编辑:程序博客网 时间:2024/06/09 02:58
也许很多人觉得这篇文章是没有意义的,但是总是有很多人不看提示就寻找答案,所以希望这篇文章能给这些朋友一些思考,有些问题的解决方法就在眼前。
当我们在windows下安装Pear(点击php目录中的go-pear.bat,按照提示安装。比如输入all,疯狂回车,其中有个选system或者local的大家自己看情况选择。)以后,pear已经被配置到系统中,但是我们cmd后输入命令pear的时候,会收到下面的提示:
1
pear
2
PHP_PEAR_PHP_BIN is not
set
correctly.
3
Please fix it using your environment variable or modify
4
the default value
in
pear.bat
5
The current value is:
6
.\php.exe
好,我们开始看第一句,PHP_PEAR_PHP_BIN这个变量设置不正确,有些人看到第一句就开始google甚至百度了,当然有些人撑到了第二句。
其实看看第三句我们就豁然开朗了,默认值其实在pear.bat中,只要修改这个值就可以了。可是我看网上很多人居然去修改注册表文件PEAR_ENV.reg,为什么你们不看看提示呢?
我们打开pear.bat,看来这样一行:
1
IF
"%PHP_PEAR_PHP_BIN%"
==
""
SET
"PHP_PEAR_PHP_BIN=.\php.exe"
我们把“.\php.exe”修改成php.exe程序的绝对路径(比如我的就是“D:\software\php\php.exe”),重启cmd(用emacs的重启emacs),我们便可以看到pear成功的运行了。
很多朋友想继续安装PHPUnit,可以参考我的使用Pear安装PHPUnit。如果有任何遗漏,还请大家补充,如果大家中间升级了pear,上面的问题也许还会出现,重复修改一遍就可以了。
- [转]Windows中PHP_PEAR_PHP_BIN is not set correctly的解决方法
- MavenReportException:The environment variable JAVA_HOME is not correctly set.错误异常解决方法
- 解决pear使用时出现 PHP_PEAR_INSTALL_DIR is not set correctly.
- 解决pear使用时出现 PHP_PEAR_INSTALL_DIR is not set correctly.
- The word 'localhost' is not correctly spelled解决方法
- tomcat配置过程中出现JRE_HOME environment variable is not defined correctly的错误
- 配置文件中 The word is not correctly spelled
- build case study 提示 the java db location is not set correctly
- 配置伪分布式时的问题”JAVA_HOME is not set and could not be found“解决方法
- linux下启动tomcat报错:The BASEDIR environment variable is not defined correctly解决方法
- The word is not correctly spelled问题解决
- The word 'Weibo' is not correctly spelled
- The word is not correctly spelled问题解决
- The word is not correctly spelled问题解决
- The word is not correctly spelled
- The word 'xx' is not correctly spelled
- The word is not correctly spelled
- The word is not correctly spelled问题解决
- 使用opengl实现一个简易的robot模拟
- jqGrid定制显示时间格式
- Ubuntu jdk环境变量
- 厌恶性盲区
- Android 3.0 访问WebService 出现 android.os.NetworkOnMainThreadException异常
- [转]Windows中PHP_PEAR_PHP_BIN is not set correctly的解决方法
- jsp 指令 标准标签库 动作 的使用
- opencv实现图像邻域均值滤波、中值滤波、高斯滤波
- CSS的三个选择器加超链接测试实例
- jQuery实现图片切换效果
- maven常用方法总结
- [转]windows 下pear安装
- Pear Mail 的安装
- 关于培训的一些感想