快速安装 Pear


Pear 是 PHP 的类库集合,用 tarbal 安装 php 后不一定安装 pear ,这里介绍一个简单快速的办法安装 pear。

  lynx -source http://pear.php.net/go-pear | php -q

  安装完毕后用 pear -V 命令显示:

  PEAR Version: 1.4.9

  PHP Version: 4.4.2

  Zend Engine Version: 1.3.0

  Running on: SunOS hostname 5.10 Generic i86pc

  用

  pear install --alldeps channel://pear.php.net/Image_Graph-0.7.2

  这样的格式可以安装所需要的包了。

  Windows 下安装 Pear

  在和 php.exe 同一个目录下有 go-pear.bat 文件,运行后即可安装。

  安装后生成:

  2006-08-01 14:35 4,557 pear.bat

  2006-08-01 14:35 4,565 peardev.bat

  2006-08-01 14:35 4,575 pecl.bat

  然后 pear list 即可查看安装的包。

  pear install 即可安装外部的 pear 包


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3