Laravel starter kit - laravel

I've downloaded laravel 4 starter kit, I already have composer but when I run composer install to install the starter kit I get this error:
[Composer\Downloader\TransportException]
The "https://api.github.com/repos/symfony/Translation/zipball/v2.3.1" file
could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.

The error occurs when there is issue in your network connectivity such as packet loss from your network to the destination host. Try reset your network connection and try again to download using the composer.

Related

I want to install composer using composersetup.exe and but it gave me this error through installation

The Composer installer script was not successful [exit code 1]. Your proxy settings may be causing this error. Script Output: The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: No connection could be made because the target machine actively refused it.
I want to use composer to create laravel project

failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

i want to install laravel in linux and i got this error
[Composer\Downloader\TransportException]
The "http://https:/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
type this command:
composer create-project laravel/laravel –-prefer-
dist lara-app
and
composer global require laravel/installer

Installing composer on ubuntu 16.4 : file could not be downloaded

I am getting this error while installing composer (sudo composer install).
Can anyone help me out?
Cannot create cache directory /home/tanmay/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/tanmay/.composer/cache/files/, or directory is not writable. Proceeding without cache
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded:
SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed

Error Installing Composer on Windows 7 64-bit with Wampserver 2.5

I'm trying to install the Composer on W7 64x. Using the installer for Windows that the site Composer provides (Composer-setup.exe).
I have installed the Wampserver 2.5 with php5.5.12 and Apache2.4.9. The openssl is enabled in php.ini.
I'm having the following errors in the installation:
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
The download failed repeatedly, aborting.
I installed xampp and WPN XM, but using the php.exe of both shows the following error:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Request to https://getcomposer.org/installer failed with errors:
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
Ensure that the SSL certs are installed and found by PHP.
In php.ini:
curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
If certs are missing: download a cert bundle from http://curl.haxx.se/ca/cacert.pem and save as ca-bundle.crt.
(Or simply use a server stack for Windows, which ships Composer right out-of-the-box: WPN-XM)

Failed to install Laravel PHP Framework using "composer install" on Ubuntu Server 14.04

I install Laravel via Download as indicated on http://laravel.com/docs/4.2/
Composer was already installed. But when I ran composer install to install all of the framework's dependencies, I got the following messages and errors:
Loading composer repositories with package information
The "https://packagist.org/packages.json" file could not be
downloaded: php_network_getaddresses: getaddrinfo failed: Name or
service not known failed to open stream: php_network_getaddresses:
getaddrinfo failed: Name or service not known https://packagist.org
could not be fully loaded, package information was loaded from the
local cache and may be out of date
Installing dependencies (including require-dev)
[Composer\Downloader\TransportException] The
"https://packagist.org/p/provider-2013$b34cfb140404adf89817de230d9257048baa3d027e56a98d9ae5d089f7f92596.json"
file could not be downloaded: php_netw ork_getaddresses: getaddrinfo
failed: Name or service not known failed to open stream:
php_network_getaddresses: getaddrinfo failed: Name or service not
known
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Any thoughts about this? Thank you.
UPDATE: It works well on Laravel 5.0. I'm working on the 4.2. I don't know if it's the composer.phar issue or the server issue? Its just fine on Windows 8.1 with XAMPP 5.6.3 (PHP: 5.6.3) installed.
Follow these steps
1.Download the zip file from here
2.Extract the contents of zip file into a directory
3.Use cd to go into ur directory where u extracted the files
From terminal run composer update
After composer finishes updating the dependency run composer dump-autoload
Hope this helps
Try running this:
composer update
in your laravel folder. Then it will download all the packages define in the composer.json file. See, if that helps.
Don't forget the basics. First check your internet connection. The downloads fail when your connectivity breaks. https://packagist.org/packages.json is an online resource, so the first reason why this can happen is bad or unstable internet connection. You might want to try with a different source of internet.

Resources