ivanrnld
ivanrnld

Reputation: 41

Segmentation fault 11 when installing composer on OSX 10.9.2

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

    Output:

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

    • Reinstall command line tools
    • Update homebrew
    • Install php54 and composer using homebrew

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

    /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 $*

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!

Upvotes: 2

Views: 2508

Answers (1)

ivanrnld
ivanrnld

Reputation: 41

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

Upvotes: 2

Related Questions