在OSX 10.9.2上安装Composer时出现分段错误11 [英] Segmentation fault 11 when installing composer on OSX 10.9.2

查看:99
本文介绍了在OSX 10.9.2上安装Composer时出现分段错误11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试安装作曲家,但始终收到错误"Segmentation fault:11". 以下是我尝试过的内容的列表:

I've been trying to install composer, but keeps getting error "Segmentation fault:11". Below is a list of what I have tried:

  1. sudo curl -sS https://getcomposer.org/installer | php

输出:

#!/usr/bin/env php 所有设置均可正确使用Composer 细分错误:11

#!/usr/bin/env php All settings correct for using Composer Segmentation fault: 11

  • 重新安装命令行工具
  • 更新自制软件
  • 使用自制软件安装php54和作曲家

这成功了,但是当我尝试在命令行中键入"composer"时, 它提供以下输出:

This one succeeds, but when I tried to type "composer" in my command line, it gives the following output:

/usr/local/bin/composer:第3行:27938分段错误:11/usr/bin/env php -d allow_url_fopen = On -d detect_unicode = Off/usr/local/Cellar/composer/1.0.0- alpha8/libexec/composer.phar $ *

/usr/local/bin/composer: line 3: 27938 Segmentation fault: 11 /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar $*

我也尝试过使用较旧的alpha版本,并且所有版本都给出了相同的细分错误11错误

I've also tried using the older alpha builds, and all of them gives the same segmentation fault 11 error

任何帮助将不胜感激.谢谢!

Any help would be appreciated. Thanks!

推荐答案

原来我的错误是由错误配置的php.ini文件引起的. 使用php.ini.default还原它可以解决问题

Turns out my error was caused by misconfigured php.ini file. Restoring it using php.ini.default solves the problem

这篇关于在OSX 10.9.2上安装Composer时出现分段错误11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆