安装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

 

如 pecl install 失败

pecl channel-update pecl.php.net   更新其协议,再安装。

pear config-set temp_dir /var/tmp/pear

再安装

 

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-01-25
猜你喜欢
  • 2021-05-15
  • 2022-01-23
  • 2021-08-29
  • 2021-05-25
  • 2022-01-10
  • 2021-12-30
  • 2021-12-28
相关资源
相似解决方案