Jonnya
Jonnya

Reputation: 71

laravel 4 install failure

I have been trying to get laravel installed with no success. I have been following what seems to be the usual recipe

git clone -b develop git://github.com/laravel/laravel.git myapp
cd myapp
curl -sS https://getcomposer.org/installer | php
php composer.phar install

When I run it I always get the following. I tried killing the cache dir updating etc.

Running PHP Version 5.4.6 open-ssl , mcrypt enabled in the cli.

Just don't know what I'm missing. Been giving it a shot for over a week. Saw some talk about network issues. When I manually download the json in the browser, I notice it redirects to a secure https url. Any pointers would be great. I've have never had a problem like this where I have not been able to dig up the answer.

# php composer.phar install
Loading composer repositories with package information
Installing dependencies

  [Composer\Downloader\TransportException]
  The "http://packagist.org/p/laravel/framework$de13d7a9bde179aa3dbe63308a250
  911fa2330b3e0ba7510dea52827ec3c2f14.json" file could not be downloaded: fai
  led to open stream: HTTP request failed!

Upvotes: 4

Views: 2835

Answers (2)

Jonnya
Jonnya

Reputation: 71

I noticed with wget or a browser, I would get an https redirect. It seems that however composer does it is different enough from these other 2 that it creates a firewall problem. The link above solved it by adding a section to my composer.json file. Now it doesn't need to redirect as it is starting at https. I am running behind a sonicwall. I am not sure why it would work with a browser and wget, but not composer. It solved it however.

Upvotes: 3

Hexodus
Hexodus

Reputation: 12965

You're cloning the Developer branch from github. This version can be broken in the moment. So you could wait and try it later again (maybe it'll get fixed meanwhile) or you download this develop.zip which is the official way described in the L4 documentation.

Upvotes: 0

Related Questions