NotoriousWebmaster's avatar

Installer failing to install

Hi all:

Today is my first day with Laravel. (yay!) Also, Composer. (double yay!)

And of course, I've run into some installation issues. When trying to install the installer on my OSX 10.10.2 machine, I get:

Bender:~ alfred$ composer global require "laravel/installer=~1.1"
Changed current directory to /Users/alfred/.composer
./composer.json has been updated
Loading composer repositories with package information

  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Failed to enable crypto
  failed to open stream: operation failed

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [packages1] ... [packagesN]

Bender:~ alfred$

Any help appreciated. I'm thinking I may circumvent the installer, and just install locally. But I'd love to solve this one.

Thanks,

  • AAA

UPDATE: also got the same error when using this:

composer create-project laravel/laravel --prefer-dist
0 likes
5 replies
bashy's avatar

Just means you can't verify the cert. You have to download the cert from the cURL site or somehow add -k to the cURL command.

NotoriousWebmaster's avatar

So, I found this question on StackOverflow http://stackoverflow.com/a/28284774/138863, which suggested adding a couple of directives to the php.ini file to point to the cert bundle. I did that, restarted my webserver (Apache), and verified that OpenSSL was pointing to the ca-bundle.crt file (in XAMPP).

But still no joy with composer. :(

bashy's avatar

Yeah seems to be a lot of problems with it, not really sure on a solution as it's not happened to me with composer.

What DNS do you use?

Please or to participate in this conversation.