zoukankan      html  css  js  c++  java
  • Getting and installing the PEAR package manager

    Windows

    After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:phpgo-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specified during installation.

    Finally you have to add that installation path to your PATH environment. Either do this manually (Start > Control Panel > System > Environment) or run (double-click) the newly generated PEAR_ENV.reg that's now found in the PHP source directory.

    After that you can access the PEAR Package Manager by running the command pear in a Windows Command Prompt.

    To update your PEAR installation, request http://pear.php.net/go-pear.phar in your browser and save the output to a local file go-pear.phar. You can then run

    php go-pear.phar

    in a Windows Command Prompt to start the update process.

    After changing php.ini , you need to restart your web server.

    Unix/Linux/BSD

    When using PHP, the PEAR Package Manager is already installed unless one has used the ./configure option --without-pear.

    If one uses a version of PHP that is supplied by Unix/Linux/BSD distributors it may be necessary to manually install PEAR. Users should consult the documentation for the respective distribution in this case.

    If you want to re-install the Package Manager, you can use the following provisional way:

    $ wget http://pear.php.net/go-pear.phar
    $ php go-pear.phar
  • 相关阅读:
    Windows 服务程序(一)
    API---注册表编程
    API---文件操作
    main(argc, char *argv[])
    C 自删除技术---批处理方式
    分治法排序
    TDD尝试:nodejs单元测试
    尝试create tech team
    Yum重装走过的坑
    求生欲很强的数据库
  • 原文地址:https://www.cnblogs.com/eastson/p/3248239.html
Copyright © 2011-2022 走看看