I try to install Laravel4 on windows 8.
I download the file, unzip it, and call "composer update"
then i have these messages :
PHP Warning: require(D:\sites\lara\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\sites\lara\bootstrap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
PHP Fatal error: require(): Failed opening required 'D:\sites\lara\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\sites\lara\bootstrap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
Warning: require(D:\sites\lara\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\sites\lara\bootstrap\autoload.php on line 17
Call Stack:
0.0002 231464 1. {main}() D:\sites\lara\artisan:0
0.0005 236592 2. require('D:\sites\lara\bootstrap\autoload.php') D:\sites\lara\artisan:16
Fatal error: require(): Failed opening required 'D:\sites\lara\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\sites\lara\bootstrap\autoload.php on line 17
Call Stack:
0.0002 231464 1. {main}() D:\sites\lara\artisan:0
0.0005 236592 2. require('D:\sites\lara\bootstrap\autoload.php') D:\sites\lara\artisan:16
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Warning: require(D:\sites\lara\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\sites\lara\boo
tstrap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
PHP Fatal error: require(): Failed opening required 'D:\sites\lara\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\sites\lara\boot
strap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose]
[-o|--optimize-autoloader] [packages1] ... [packagesN]
If I try by typing composer create-project laravel/laravel
I have
Installing laravel/laravel (v4.0.0)
- Installing laravel/laravel (v4.0.0)
Downloading: 100%
Downloading: 100%
Downloading: 100%
[Composer\Downloader\TransportException]
The "http://nodeload.github.com/laravel/laravel/zip/v4.0.0" file could not be downloaded: failed to open stream: Unable to find the socket transport "ssl"
- did you forget to enable it when you configured PHP?
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [package] [directory] [version]
Thanx for your help
Jason Lewis is right. Just comment out the openssl extension in your php.ini, run the command again in cmd shall fix your problem. No need to restart your PC or server.
You should not be calling update. You should first call install.
As for the create-project method, I also had the same problem. But it went away.
Please consult the documentation fully when attempting an install.
Related
Installing laravel/laravel (v5.7.13)
- Installing laravel/laravel (v5.7.13): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/c09519f547ae7a97eb26433f159cd81b8753e666" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing laravel/laravel (v5.7.13): Cloning c09519f547
[RuntimeException]
Failed to clone https://github.com/laravel/laravel.git, git was not found, check that it is installed and in your P
ATH env.
'git' is not recognized as an internal or external command,
operable program or batch file.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []
I have one laravel5.0 project
I want to run this project in my local system
But when i run command into cmd "composer install"
that time my cmd display following error message
C:\xampp\htdocs\Laravel5>composer install
> php artisan clear-compiled
Warning: require(C:\xampp\htdocs\Laravel5\bootstrap/../vendor/autoload.php): fai
led to open stream: No such file or directory in C:\xampp\htdocs\Laravel5\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\Laravel5\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htd
ocs\Laravel5\bootstrap\autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output:
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
just run this command
composer update --no-scripts
It will run composer without any scripts.
On running the command:
composer create-project --prefer-dist laravel/laravel blog
I am getting these errors -
Your version of PHP, 5.4.12, is affected by CVE-2013-6420 and cannot safely perform
certificate validation, we strongly suggest you upgrade.
[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
create-project [-s|--stability STABILITY] [--prefer-source]
[--prefer-dist] [--repository REPOSITORY] [--repository-url
REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins]
[--no-custom-installers] [--no-scripts] [--noprogress] [--keep-vcs]
[--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>][<version>]
Can anyone please tell me what may be the problem. I am using a proxy network. In environment variable I have set both http_proxy & https_proxy.
For laravel 5.2 minimum version of php required is 5.5.9
So you have to upgrade your php version.
Also you need to have only http_proxy as system variable if you are using proxy network, not the https_proxy variable.
I was following a tutorial on Lynda.com, and I am completely new to the composer/laravel scene. The tutorial told me to install the MCrypt libarary, which I did successfully from this package:
topicdesk.com/downloads/mcrypt/mcrypt-download
Composer seems to be successfully installed/running.
I then went ahead and opened terminal, and put in the following command:
composer create-project laravel/laravel first_app --prefer-dist
Which resulted in the following error:
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
create-project [-s|--stability="..."] [--prefer-source]
[--prefer-dist] [--repository-url="..."]
[--dev] [--no-dev] [--no-plugins]
[--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs]
[--no-install] [package] [directory] [version]
Any ideas on what the issue may be? After looking around on the forums, it seems to me that it is a very case specific issue. Where do I begin in finding what may be preventing it from working correctly?
I have composer installed and openSSL extension enable in PHP but I still get the error (I restarted wamp twice)
Afflicto#Afflicto-PC /cygdrive/e/wamp/www/wirezapp2
$ composer create-project laravel/laravel wirezapp --prefer-dist
Installing laravel/laravel (v4.0.5)
- Installing laravel/laravel (v4.0.5)
Downloading: 100%
Downloading: 100%
Downloading: 100%
[Composer\Downloader\TransportException]
The "http://nodeload.github.com/laravel/laravel/zip/v4.0.5" file could not
be downloaded: failed to open stream: Unable to find the socket transport "
ssl" - did you forget to enable it when you configured PHP?
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-
url="..."] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress]
[-- keep-vcs] [package] [directory] [version]
Figured it out:
The php.ini in wamp is different than that used by apache/wamp, so I had to enable the open ssl extension via php.ini found in wamp/bin/php/php5.4.3/php.ini