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
  • 相关阅读:
    C/C++中extern关键字详解
    C/C++中static关键字详解
    MFC创建工程图解
    C++中L和_T()之区别
    C/C++中const关键字详解
    winfrom中,父窗体中只允许显示一个子窗体的代码怎么写?
    sql 批量插入
    visual studio .net ide : checking into source control now says checkIn Now (recursive)
    1.4 Turbo C V2.0的基本操作
    关于vs2003不能调试的解决方法
  • 原文地址:https://www.cnblogs.com/longzhu/p/5561769.html
Copyright © 2011-2022 走看看