`
forkun
  • 浏览: 37487 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

PHP_PEAR_PHP_BIN is not set correctly的解决方法(pear安装symfony)

阅读更多
Windows中PHP_PEAR_PHP_BIN is not set correctly的解决方法

windows下安装Pear(点击php目录中的go-pear.bat,按照提示安装。比如输入all,疯狂回车,其中有个选system或者local的大家自己看情况选择。)以后,pear已经被配置到系统中,但是我们cmd后输入命令pear的时候,会收到下面的提示:


pear
PHP_PEAR_PHP_BIN is not set correctly.
Please fix it using your environment variable or modify
the default value in pear.bat
The current value is:
.\php.exe


第一句,PHP_PEAR_PHP_BIN这个变量设置不正确,有些人看到第一句就开始google甚至百度了,当然有些人撑到了第二句。

其实看看第三句我们就豁然开朗了,默认值其实在pear.bat中,只要修改这个值就可以了。可是我看网上很多人居然去修改注册表文件PEAR_ENV.reg,为什么你们不看看提示呢?

我们打开pear.bat,看来这样一行:


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,上面的问题也许还会出现,重复修改一遍就可以了。


运行安装symfony完成下载后,出现错误:ERROR: failed to mkdir C:\php\pear\data\symfony\bin(win7),这是由于win7系统的安全性,很显然提示说是没有C盘的写入权限,C盘右击:属性->安全->编辑,是当前用户获取C盘的读写权限即可。。。
分享到:
评论

相关推荐

    Foundations of PEAR_ Rapid PHP Development.pdf

    Once you have the PATH variable set correctly, you can access the package manager from the command line by typing pear. In this book, you will find a number of styles of text that distinguish ...

    【JAVA】Please ensure that adb is correctly located at 解决详细方案

    【JAVA】Please ensure that adb is correctly located at 解决详细方案

    解决:'RICHTX32.OCX' or one of its dependencise not correctly registered

    解决:'RICHTX32.OCX' or one of its dependencise not correctly registered. 运行下载后的EXE程序,补充系统中缺少的文件

    运行android时,出现“Please ensure that adb is correctly located

    运行写好的应用程序时,出现“Please ensure that adb is correctly located at 'E:/src/android23sdk/Android-sdk_r08-windows/android-sdk-windows/platform-tools' and can be executed.”提示。

    windows下安装rabbitmq的步骤详解

    MQ全称为Message Queue, 消息队列(MQ)是一种应用程序对应用程序的通信方法。应用程序通过读写出入队列的消息(针对应用程序的数据)来通信,而无需专用连接来链接它们。消息传递指的是程序之间通过在消息中发送...

    Ubuntu_10[1].04_安装配置指南

    初学系统安装的学子们,这是一份教会你如何安装linux系统的有用资料

    Component'MSADODC.OCX' or one of its dependencies nt correctly

    Component'MSADODC.OCX' or one of its dependencies nt correctly

    Senfore_DragDrop_v4.1

    * When TDropFileTarget.GetDataOnEnter is set to True, the component doesn't work with WinZip. Although the file names are received correctly by TDropFileTarget, WinZip doesn't extract the files and...

    一个win32下的ARM开源编译器

    There are a few restrictions how the ARM instruction set is implemented. The changes are minor and mostly have a minor impact. For the most part the basic instruction outline is the same. Where ...

    CRRuntime_64_32bit_13_0_30.rar

    Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable ...

    fonts_for_ubuntu_wps.tar.gz

    ubuntu安装完wps后打开提示“some formula symbols might be not display” sudo tar -zxvf wps_for_linux_fonts.tar.gz -C /usr/share/fonts/ # 生成字体索引 sudo mkfontscale sudo mkfontdir # 更新字体缓存 ...

    tomcat使用笔记

    tomcat 的使用笔记 Tomcat 服务器是一个免费的开放源代码的Web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。...实际上Tomcat是Apache ...

    plsqldev13.0.3.1902x32主程序+ v12中文包+keygen

    Could not log on when ORACLE_HOME environment variable was set to an incorrect directory Editor Column Editing did not always work correctly Editor Keyword Case was not always applied after typing ...

    plsqldev13.0.3.1902x64主程序+ v12中文包+keygen

    Could not log on when ORACLE_HOME environment variable was set to an incorrect directory Editor Column Editing did not always work correctly Editor Keyword Case was not always applied after typing ...

    Please ensure that adb is correctly located..... 问题

    NULL 博文链接:https://huangqinqin.iteye.com/blog/1848006

    Android代码-SolidLauncher

    SolidLauncher-Api ...If package name is not valid nor apex based, or if user is not allowed to set icon pack, user will not be able to confirm change and result will be Activity.RESUL

    8-07-14_MegaCLI for linux_windows

    LSIP200232921 (DFCT) MegaCLI displays version for PD in unclear format and the data is not aligned correctly LSIP200232954 (DFCT) Need to Support all the MFC default values in the command AdpSettings...

    mc8051_design_v1.6.zip

    This is version 1.6 of the MC8051 IP core. Changes: - In certain interrupt situations the stack pointer still has been erroneously set in control_mem_rtl.vhd, revision 1.10 and below. This has ...

    PHP生成和在线浏览类库.zip

    | always be used to set the mode correctly. | */ define('FILE_READ_MODE', 0644); define('FILE_WRITE_MODE', 0666); define('DIR_READ_MODE', 0755); define('DIR_WRITE_MODE', 0777); /* ...

    Advanced Data Export 4.15 10.3 Rio

    Version 4.15.0 1. Implemented support of RAD Studio 10.3 Rio. 2. Encoding for XML files has been added. 3. The error occurred on ... Date and time values were not exported correctly. Fixed now.

Global site tag (gtag.js) - Google Analytics