红色为错误。黄色为错误提示。黑色为正确。

1.下载peal

curl -O http://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar

出错:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://pear.php.net/go-pear.phar">here</a>.</p>
</body></html>

然后执行:

1.1下载:curl -O https://pear.php.net/go-pear.phar

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3523k  100 3523k    0     0   159k      0  0:00:22  0:00:22 --:--:--  246k

1.2安装:sudo php -d detect_unicode=0 go-pear.phar

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix)                   : /usr
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/bin
 5. PHP code directory ($php_dir)                 : /usr/share/pear
 6. Documentation directory                       : /usr/docs
 7. Data directory                                : /usr/data
 8. User-modifiable configuration files directory : /usr/cfg
 9. Public Web Files directory                    : /usr/www
10. System manual pages directory                 : /usr/man
11. Tests directory                               : /usr/tests
12. Name of configuration file                    : /private/etc/pear.conf

2.1配置Installation base

1-12, 'all' or Enter to continue: 1  注释:enter键
(Use $prefix as a shortcut for '/usr', etc.)
Installation base ($prefix) [/usr] : /usr/local/pear 注释:enter键

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix)                   : /usr/local/pear
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/local/pear/bin
 5. PHP code directory ($php_dir)                 : /usr/local/pear/share/pear
 6. Documentation directory                       : /usr/local/pear/docs
 7. Data directory                                : /usr/local/pear/data
 8. User-modifiable configuration files directory : /usr/local/pear/cfg
 9. Public Web Files directory                    : /usr/local/pear/www
10. System manual pages directory                 : /usr/local/pear/man
11. Tests directory                               : /usr/local/pear/tests
12. Name of configuration file                    : /private/etc/pear.conf

2.2配置Binaries directory

1-12, 'all' or Enter to continue: 4  注释:enter键
(Use $prefix as a shortcut for '/usr/local/pear', etc.)
Binaries directory [$prefix/bin] : /usr/local/bin  注释:enter键

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix)                   : /usr/local/pear
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/local/bin
 5. PHP code directory ($php_dir)                 : /usr/local/pear/share/pear
 6. Documentation directory                       : /usr/local/pear/docs
 7. Data directory                                : /usr/local/pear/data
 8. User-modifiable configuration files directory : /usr/local/pear/cfg
 9. Public Web Files directory                    : /usr/local/pear/www
10. System manual pages directory                 : /usr/local/pear/man
11. Tests directory                               : /usr/local/pear/tests
12. Name of configuration file                    : /private/etc/pear.conf

1-12, 'all' or Enter to continue: 
Beginning install...
Configuration written to /private/etc/pear.conf...
Initialized registry...
Preparing to install...
installing phar:///Users/lixiaosha/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.7.tar...
installing phar:///Users/lixiaosha/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.2.tar...
installing phar:///Users/lixiaosha/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.9.tar...
installing phar:///Users/lixiaosha/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...
installing phar:///Users/lixiaosha/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.3.tar...
install ok: channel://pear.php.net/Archive_Tar-1.4.7
install ok: channel://pear.php.net/Console_Getopt-1.4.2
install ok: channel://pear.php.net/Structures_Graph-1.1.1
install ok: channel://pear.php.net/XML_Util-1.4.3
install ok: channel://pear.php.net/PEAR-1.10.9
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"

******************************************************************************
WARNING!  The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
</usr/local/pear/share/pear>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.

3.1更改php.ini
Would you like to alter php.ini </etc/php.ini>? [Y/n] : y 注释:enter键

php.ini </etc/php.ini> include_path updated.

Current include path           : .:
Configured directory           : /usr/local/pear/share/pear
Currently used php.ini (guess) : /etc/php.ini
Press Enter to continue: 注释:enter键

The 'pear' command is now at your service at /usr/local/bin/pear

** The 'pear' command is not currently in your PATH, so you need to
** use '/usr/local/bin/pear' until you have added
** '/usr/local/bin' to your PATH environment variable.

Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.

For more information about PEAR, see:

http://pear.php.net/faq.php
  http://pear.php.net/manual/

Thanks for using go-pear!

4.1检查安装pear version
PEAR Version: 1.10.9
PHP Version: 7.1.23
Zend Engine Version: 3.1.0

Mac 安装peal的过程以及问题相关推荐

  1. Mac安装nginx配置过程

    mac电脑系统重装了,记录一下安装nginx的过程: 1.打开终端 2.安装Command Line tools xcode-select --install 3.安装brew命令 1 ruby -e ...

  2. Mac系统下载安装sublime3详细过程

    不管是Linux操作系统还是mac操作系统,sublime都是程序员们钟爱的IDE.下面总结一下自己在Mac安装sublime的过程. 现在可用sublime3,下面我也以sublime3的下载安装过 ...

  3. mac 安装 qt5 for tsmuxer

    tsmuxer 是开源项目 带一个qt5的界面 并能编译为一个mac的app mac 安装 qt5 qt5 过程过程 homebrew 下载源码 configure make make install ...

  4. Mac安装jupyter(原ipython)方法

    用了Mac之后非常不习惯,很多东西都要查才能完成=-=之前python用的sublime和ide,今天看教程安利了一个jupyter 记录下用Mac安装jupyter的过程: 1.像其他安装Mac自带 ...

  5. mac安装telnet(个人记录)

    安装命令: brew install telnet 如没有提前安装brew,可执行如下命令: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunk ...

  6. Mac安装Adobe Zii5.3.0过程

    Mac安装Adobe Zii5.3.0过程 step 1.官网下载最新版本程序 step 2. 安装程序 安装完成- step 1.官网下载最新版本程序 首先,我们先去官网下载最新版本的adobe z ...

  7. 探讨:在Mac新系统下安装新版XAMPP过程中遇到到的坑以及解决办法

    探讨:在Mac新系统下安装新版XAMPP过程中遇到到的坑以及解决办法 简介 XAMPP安装 XAMPP 是个啥? 安装XAMPP 新版问题:IP地址访问不再是localhost 操作问题:apache ...

  8. Mac上安装mars2020使用过程及问题求解

    光辉城市是全球领先的建筑 VR 技术提供商 mars2020是光辉城市公司出品的设计师软件.如果要在Mac上进行安装使用,过程如下: 去往光辉城市官方网站,点击下载,会出现"Mars 202 ...

  9. mac 安装 brew 卡在安装过程不动

    problem mac 安装 brew 卡在安装过程不动 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homeb ...

最新文章

  1. dubbo-go v3 版本 go module 踩坑记
  2. python异常处理优点_python各类异常处理学习笔记
  3. 如何监视ps/查询的性能和使用
  4. MySQL性能指标及计算方法
  5. Java高级语法笔记-文本文件的按行读取
  6. word2vec相似度计算_AAAI-2016 | 使用孪生递归网络的句子语义相似度计算方法
  7. cstring越界_CString 内核
  8. 【Spark-core学习之六】 Spark资源调度和任务调度
  9. 【语音识别】基于matlab隐马尔可夫模型(HMM)孤立字语音识别【含Matlab源码 576期】
  10. php视频系统源码,基于ThinkPHP框架仿优酷视频源码带数据,后台功能强大
  11. 大数据决策支持的优势
  12. python表情识别程序_python 实现表情识别
  13. 多线程编程中条件变量和的spurious wakeup 虚假唤醒
  14. python实现12306自助刷票下单
  15. 触控板失灵的解决方法(synaptics驱动)
  16. 手动实现promise基础功能代码并测试自己写的promise库是否符合规范
  17. postman报错500 Internal Server Error
  18. TCP/IP协议栈之LwIP(四)---网络诊断与状态查询(ICMPv4 + ICMPv6)
  19. 基于51单片机智能停车场管理车位引导系统蓝牙手机通信proteus仿真原理图PCB
  20. 台灯a级和aa级和aaa级哪个好?2022最新护眼台灯推荐

热门文章

  1. 【阿里云IoT+YF3300】14.阿里IoT Studio打造手机端APP
  2. Android 将一张CMYK模式的图片转换成RGB模式的图片
  3. 芯片AES加密密钥生成工具
  4. 第六章-2 波端口激励具体操作(HFSS 2018版实操)
  5. 数字孪生技术,可视化平台底座
  6. 无法载入共享目标对象‘...rJava.dll’
  7. java 球面距离_Java 地球上计算两点之间距离计算方法
  8. 计算机房安全防范措施,数据中心的机房安全管理要做到“六防政策”
  9. python --cpca(从文本中提取省市区)
  10. yield from