composer: Symfony Signal 5 Fatal Error

Composer version 1f2d331fd341897c9d54414a76b909beba9e3a59

I’m receiving this error when I try to run composer install, composer update, composer diagnose

Exception trace:
 () at phar:///usr/local/bin/composer/vendor/symfony/process/Symfony/Component/Process/Process.php:430
 Symfony\Component\Process\Process->wait() at phar:///usr/local/bin/composer/vendor/symfony/process/Symfony/Component/Process/Process.php:207
 Symfony\Component\Process\Process->run() at phar:///usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php:61
 Composer\Util\ProcessExecutor->execute() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/RootPackageLoader.php:192
 Composer\Package\Loader\RootPackageLoader->guessGitVersion() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/RootPackageLoader.php:177
 Composer\Package\Loader\RootPackageLoader->guessVersion() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/RootPackageLoader.php:57
 Composer\Package\Loader\RootPackageLoader->load() at phar:///usr/local/bin/composer/src/Composer/Factory.php:235
 Composer\Factory->createComposer() at phar:///usr/local/bin/composer/src/Composer/Factory.php:393
 Composer\Factory::create() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:175
 Composer\Console\Application->getComposer() at phar:///usr/local/bin/composer/src/Composer/Command/Command.php:50
 Composer\Command\Command->getComposer() at phar:///usr/local/bin/composer/src/Composer/Command/InstallCommand.php:59
 Composer\Command\InstallCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:244
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:882
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:212
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:117
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:119
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43
 require() at /usr/local/bin/composer:15

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 64 (23 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, this worked for me: $brew install svn $brew link --overwrite subversion

this worked for me too!: $brew install svn $brew link --overwrite subversion

“This problem should only show itself if you have a PHP script that is calls system(“svn”) . It happens because OS X local svn requires the local libsasl installed, but zend’s PHP uses its own libsasl build. However, svn and PHP don’t share the same address space, just the same environment, so all we need is to give each one the environment it wants.”

(from http://forums.zend.com/viewtopic.php?f=8&t=107973#p202868)

Basically what helped me was to add this line:

putenv("DYLD_LIBRARY_PATH=''");

in the top of the Process.php file of the composer.

brew reinstall subversion

thanks to @PhilippeDunbar I fix the problem in mac. brew install svn.

I had this problem too, spent about 3 hours trying to track it down. @deondazy solution fixed it for me as well. Thanks @emri99 for pointing out the SVN error.

Three potential solutions for this.

  1. Add SVN to dependencies for homebrew installs. (easy, and would probably solve for most people)
  2. A more verbose error for SVN errors.
  3. git fallback (or use SVN as the fallback since git is more popular)

I’m not familiar with composer’s codebase, but I’m willing to take a look into the feasibility of my suggestions.