sanof
sanof

Reputation: 359

composer update on mac not working

Since I updated my PHP version to 5.4, I have trouble to update composer on my symphony 2 project.

$ php composer.phar update

gives me:

The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
_https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date


  [RuntimeException]
  Failed to execute git status --porcelain --untracked-files=no

  error: bad index file sha1 signature
  fatal: index file corrupt

Here is link to a screenshot:

http://sanofuzir.com/Screen.jpg

What should I do?

Upvotes: 1

Views: 7223

Answers (1)

efinal
efinal

Reputation: 191

it's more likely that you can't even ping the url on the console. then try the solution here: https://discussions.apple.com/message/10713911#10713911 just refresh your DHCP address, and it works for me!

Upvotes: 2

Related Questions