1. 首先安装pear:

curl -o go-pear.php https://pear.php.net/go-pear.phar

看见这个就安装OK:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3512k 100 3512k 0 0 392k 0 0:00:08 0:00:08 --:--:-- 732k

2. 然后执行:

会发现在当前目录下会有 go-pear.php

sudo php go-pear.php

输入密码后一直确认就行,这样就安装了pear

3.安装phpDocumentor

到pear的安装目录下,直接执行下面这行命令时,我查了一下我的安装目录在 ./pear/bin/

./pear install phpDocumentor

直接报warning,提示

WARNING: "pear/PhpDocumentor" is deprecated in favor of "channel://pear.phpdoc.org/phpdocumentor"
WARNING: configuration download directory "/tmp/pear/install" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
好像是channel有问题,查了下资料,作出以下调整

执行

sudo pear channel-discover pear.phpdoc.org

提示成功了

Adding Channel "pear.phpdoc.org" succeeded
Discovery of channel "pear.phpdoc.org" succeeded

4. 然后执行安装phpDocument

sudo pear install phpdoc/phpDocumentor

就可以看到下载成功了

最新文章

  1. HDOJ 2444 The Accomodation of Students
  2. Increasing Triplet Subsequence
  3. ABAP Enhancement:第一部分
  4. Flex中实现类似Javascript的confirm box
  5. Linux 系统监控和诊断工具:lsof
  6. 类似QQ的应用毗邻(Pilin)即时聊天源码
  7. Does not contain a valid host;port authority解决方法
  8. JS打开窗口问题
  9. Why stackedit
  10. hdu3306 Another kind of Fibonacci【矩阵快速幂】
  11. Object-c学习之路六(oc字符串文件读写)
  12. 【BZOJ1001】[BeiJing2006]狼抓兔子
  13. zTree实现地市县三级级联Service接口测试
  14. shell从入门到精通进阶之一:Shell基础知识
  15. rpm和yum模拟安装
  16. Refs & DOM
  17. layui 批量上传文件 + 后台 用servlet3.0接收【我】
  18. POJ - 3279 Fliptile (枚举)
  19. Lua和C++交互 学习记录之七:C++全局函数注册为Lua模块
  20. python-day1笔记

热门文章

  1. java安装以及jdk和jre安装(简单了解)
  2. visual assist x vs2012不智能提示
  3. 利用css transition属性实现一个带动画显隐的微信小程序部件
  4. 菜鸟笔记 -- Chapter 4 Java语言基础
  5. JavaScript实现快速排序(Quicksort)
  6. ABAP术语-Event
  7. YII2.0学习一 Advanced 模板安装
  8. Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000
  9. python+matplotlib 绘制等高线
  10. django的模型和基本的脚本命令