日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > php >内容正文

php

php curl 要安装pear,MacOS 安装pear

發(fā)布時(shí)間:2023/12/2 php 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php curl 要安装pear,MacOS 安装pear 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1、下載Pear

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

2、安裝Pear

sudo php -d detect_unicode=0 go-pear.phar

安裝過程需要進(jìn)行簡單的配置,如下

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

1-12, 'all' or Enter to continue: 1

輸入 1,將安裝根目錄修改為 /usr/local/pear;

輸入 4,將命令安裝到 /usr/local/bin 目錄;

其它選項(xiàng)默認(rèn)即可,一路回車。

檢測是否安裝成功

輸入 pear version

pear version

如果現(xiàn)實(shí)如下信息,則安裝成功

PEAR Version: 1.10.5

PHP Version: 7.1.7

Zend Engine Version: 3.1.0

如果還是顯示

command not found: pear

則可能是pear的環(huán)境變量沒有配置

打開bash.profile

open ~/.bash_profile

添加pear的路徑

export PATH="/usr/bin/pear:$PATH"

保存配置

source ~/.bash_profile

再次執(zhí)行pear version查看信息即可

總結(jié)

以上是生活随笔為你收集整理的php curl 要安装pear,MacOS 安装pear的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。