Jump to content
新域网络技术论坛
Sign in to follow this  
Jamers

PHP7 使用pecl安装组件报错解决方式

Recommended Posts

顺便把安装方式也一并添加一下吧。

 

报错如下:

Warning: Invalid argument supplied for foreach() in Command.php on line 249

Warning: Invalid argument supplied for foreach() in /usr/local/share/pear/PEAR/Command.php on line 249
curl -O http://pear.php.net/go-pear.phar
php go-pear.phar

一般安装在: /usr/local/bin/pecl

ee `which pecl`
到最后一行,把-n 去掉就可以了。

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...