Mac OS composer JIT compilation Failed

栏目: PHP · 发布时间: 5年前

内容简介:如果你用的是PHP 7.3版本的话,可以在php.ini中关闭这是 PHP 7.3.0 本身的一个 BUG 引起的,详见

如果你用的是 PHP 7.3版本的话,可以在php.ini中关闭 pcre.jit 配置:

pcre.jit=0

这是 PHP 7.3.0 本身的一个 BUG 引起的,

详见 Bug #77260 | preg_match_all(): JIT compilation failed: no more memory

或者可以通过在执行composer的时候设置内存大小:

php -d memory_limit=1024M /usr/local/bin/composer.phar

为了方便,我们可以通过 alias 来设置别名,在每次执行composer的时候,自动加上内存设置:

alias composer='php -d memory_limit=1024M /usr/local/bin/composer.phar'

别名设置完成后,我们就可以直接使用composer命令了。


以上所述就是小编给大家介绍的《Mac OS composer JIT compilation Failed》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Automate This

Automate This

Christopher Steiner / Portfolio / 2013-8-9 / USD 25.95

"The rousing story of the last gasp of human agency and how today's best and brightest minds are endeavoring to put an end to it." It used to be that to diagnose an illness, interpret legal docume......一起来看看 《Automate This》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具