我一般是手工安装pear,将全部需要的PEAR包下载回来放到统一的目录后手工修改php.ini文件。不过我比较推荐用 php go_pear.php那个PHP文件来安装,比bat的安装要好~~

解决方案 »

  1.   

    还是不行呀!还有没有人使用go-pear.bat出现类似问题的?
      

  2.   

    我刚用了php go_pear.php安装,可是还有一样的错误信息?
      

  3.   

    直接copy过去就行了, go-pear.bat里面是什么? 从来没用过,都是直接copy到相应的目录 ,都db copy过去再把pear.php copy过去就应该行了,因为pear不用什么其它的设计啊,只是个类库嘛
    另外, 你看的php.ini是哪个路径下的,有的版本本是c:\winnt\php.ini下起作用,有的是php的安装目录下的php.ini起作用,建议都改一下
      

  4.   

    PEAR Manual Prev Chapter 2. Installation Next --------------------------------------------------------------------------------Getting the manager
    Unix/Linux/BSD
    When using PHP >= 4.3.0, the PEAR Package Manager is already installed unless one has used the ./configure option --without-pear. For all versions prior to 4.3.0 or if you want to re-install the Package Manager, you can use the following provisional way: 
    $ lynx -source http://go-pear.org/ | php
          
     
    Note: Some Linux distributions (e.g. Redhat) seem to be using links instead of lynx as the name for their command line browser. If this is the case for you, you need to change the above line correspondingly. Windows
    After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:\php\go-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specific during installation. Finally you have to add that installation path to your PATH environment (Start > Control Panel > System > Environment). After that you can access the PEAR Package Manager by running the command pear in a Windows Command Prompt. To update your PEAR installation from go-pear.org, request http://go-pear.org/ in your browser and save the output to a local file go-pear.php. You can then run 
    php go-pear.php
          
     
    in a Windows Command Prompt to start the update process. PEAR in hosting environments
    If you are running your site at a web hosting provider with no direct access to the server (via local logins, Telnet or SSH), you can't use the PEAR Package Manager. If you are customer of a smart web hosting company, the chances are very well that the most commonly used PEAR packages are already installed on the machine that is hosting your site. If that is not the case or if you need additional packages, you should contact your provider and ask them nicely to install the package. If they refuse to do so, you can either look for a new web hosting company or you can install the package manually. 
    --------------------------------------------------------------------------------
    Prev Home Next 
    Installation Up Command line installer   Back
    Forward--------------------------------------------------------------------------------
    Copy--------------------------------------------------------------------------------
     PEAR Packages
    Developer Mailing Lists
    General Mailing List
    CVS Commits Mailing List
    PHP Manual
    Google
    AllTheWeb--------------------------------------------------------------------------------
    Print
    Refresh