zoukankan      html  css  js  c++  java
  • Windows下获取和安装PEAR包管理器 Getting and installing the PEAR package manager

    1. 安装PHP,确保能使用能在命令行使用php命令;

    C:UsersYangLong>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:phpgo-pear.phar;

    3. 运行php go-pear.phar安装,你会看到一些提示,直接回车就好;

    3.1 运行 C:phpPEAR_ENV.reg 注册一些用户级别的ENV变量;

    4. 检查PEAR是否工作

    C:UsersYangLong>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:UsersYangLong>pear config-get php_dir
    C:phppear

    6. 检查include_path

    C:UsersYangLong>php -r "echo get_include_path()."
    ";"
    .;C:phppear

    7. 尝试包含一个文件

    C:UsersYangLong>php -r "require_once 'System.php';var_dump(class_exists('System', false));"
    bool(true)

    8. 安装PHP_CodeSniffer

    C:UsersYangLong>pear install PHP_CodeSniffer
    WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
    downloading PHP_CodeSniffer-2.6.1.tgz ...
    Starting to download PHP_CodeSniffer-2.6.1.tgz (491,703 bytes)
    .....done: 491,703 bytes
    install ok: channel://pear.php.net/PHP_CodeSniffer-2.6.1

    9. Updating channel

    C:UsersYangLong>pear channel-update pear.php.net
    Updating channel "pear.php.net"
    Update of Channel "pear.php.net" succeeded
  • 相关阅读:
    程序的链接
    Graphviz 画图的一些总结
    C表达式中的汇编指令
    epoll(2) 源码分析
    epoll(2) 使用及源码分析的引子
    eventfd(2) 结合 select(2) 源码分析
    poll(2) 源码分析
    select 源码分析
    kfifo
    程序的机器级表示:寻址方式、指令及栈的运行机制
  • 原文地址:https://www.cnblogs.com/longzhu/p/5561769.html
Copyright © 2011-2022 走看看