我正在尝试在 MacOS High Sierra 上的 PHP 7.2.13 中安装 pcre 扩展程序,但出现此错误:>
Installing shared extensions: /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/
cp: /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/bz2.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/curl.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/exif.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/fileinfo.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/gettext.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/gmp.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/hash.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/intl.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/json.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/mbstring.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/mcrypt.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/mysqli.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/openssl.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/pdo.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/pdo_dblib.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/pdo_mysql.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/pdo_sqlite.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/shmop.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/soap.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/sockets.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/sqlite3.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/xmlrpc.so /usr/local/Cellar/php@7.2/7.2.13/pecl/20170718/#INST@97525#: name too long
make: *** [install-modules] Error 1
我正在使用以下命令进行安装:
sudo phpize
./configure
make
sudo make install
我该如何解决?我用谷歌搜索,但没有找到任何解决方案。 谢谢。