尝试使用pecl安装intl时发生PHPIZE错误

时间:2018-12-19 10:17:10

标签: xampp magento2 php-extension pecl

因此,对于magento2,我需要安装:PHP Extension intl。

现在,抬起头后,我正在尝试执行此操作,但是我一直在出错。我在MAC上并且正在使用XAMPP,当我运行“ sudo pecl install int”时太可惜了,我得到以下错误。

Starting to download intl-3.0.0.tgz (248,200 bytes)
.....done: 248,200 bytes
150 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718  
Zend Extension Api No:   320170718
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
ERROR: `phpize' failed

我也尝试使用'sudo pecl update-channels',但这会给我以下消息:

Updating channel "doc.php.net"
Channel "doc.php.net" is not responding over http://, failed with message: File http://doc.php.net:80/channel.xml not valid (redirected but no location)
Trying channel "doc.php.net" over https:// instead
Cannot retrieve channel.xml for channel "doc.php.net" (Connection to `ssl://doc.php.net:443' failed: Connection refused)
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date
Updating channel "pear.phpunit.de"
Channel "pear.phpunit.de" is not responding over http://, failed with message: File http://pear.phpunit.de:80/channel.xml not valid (received: HTTP/1.1 404 Not Found
)
Trying channel "pear.phpunit.de" over https:// instead
Cannot retrieve channel.xml for channel "pear.phpunit.de" (Connection to `ssl://pear.phpunit.de:443' failed: )
Updating channel "pear.symfony-project.com"
Channel "pear.symfony-project.com" is up to date
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date

我该怎么解决?我在PHP 7.2中使用XAMPP

0 个答案:

没有答案