mac pecl

安装pecl

参考:https://blog.csdn.net/zerovszero1/article/details/98946925

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

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

执行以上命令,提示如下错误:

1 2 3 4 5 6 7 8 9 10 11 12 13 <!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

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

输入1,回车,配置pear路径为:/usr/local/pear

输入4,回车,配置命令路径为:/usr/local/bin

回车

回车

结束~

1.3查看版本号 pecl -V

上一篇:洛谷P1865 A % B Problem(前缀和)


下一篇:Linux 第2课