OS X Laravel Installation fail on XAMPP using Composer - laravel

I have installed composer as Laravel docs instruct. I then ran the following command to instal Laravel: composer create-project laravel/laravel your-project-name --prefer-dist
I get the following:
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
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing laravel/laravel (v5.1.4)
- Installing laravel/laravel (v5.1.4)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/901a45fd96a7479e77f63ea5f8d1147a2766cafa" 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
Now trying to download from source
- Installing laravel/laravel (v5.1.4)
Cloning 901a45fd96a7479e77f63ea5f8d1147a2766cafa
Created project in your-project-name
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
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
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)
- Installing vlucas/phpdotenv (v1.1.1)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download vlucas/phpdotenv from dist: The "https://api.github.com/repos/vlucas/phpdotenv/zipball/0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa" 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
Now trying to download from source
- Installing vlucas/phpdotenv (v1.1.1)
Cloning 0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa
- Installing symfony/var-dumper (v2.7.3)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/var-dumper from dist: The "https://api.github.com/repos/symfony/var-dumper/zipball/e8903ebba5eb019f5886ffce739ea9e3b7519579" 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
Now trying to download from source
- Installing symfony/var-dumper (v2.7.3)
Cloning e8903ebba5eb019f5886ffce739ea9e3b7519579
- Installing symfony/translation (v2.7.3)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/translation from dist: The "https://api.github.com/repos/symfony/Translation/zipball/c8dc34cc936152c609cdd722af317e4239d10dd6" 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
Now trying to download from source
- Installing symfony/translation (v2.7.3)
Cloning c8dc34cc936152c609cdd722af317e4239d10dd6
- Installing symfony/routing (v2.7.3)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/routing from dist: The "https://api.github.com/repos/symfony/Routing/zipball/ea9134f277162b02e5f80ac058b75a77637b0d26" 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
Now trying to download from source
- Installing symfony/routing (v2.7.3)
Cloning ea9134f277162b02e5f80ac058b75a77637b0d26
So first it says that it failed to do blah but then it says installing, cloning etc. I check the folder your-project-name and it has like 190MB of stuff. So did it work or not? If not how can I fix this issue?
I am running OS X Mavericks and PHP 5.6+
I looked at other answers but none seem to work for my system.

I install openssl via homebrew:
brew install openssl
This installs the openssl certificates to /usr/local/etc/openssl/cert.pem, so we can now use the new PHP 5.6 INI setting openssl.cafile to tell PHP where to find the certificates:
Adding
openssl.cafile=/usr/local/etc/openssl/cert.pem

Try this
composer create-project laravel/laravel c:/xampp/htdocs/laravel
-Here the path is(c:/xampp/htdocs/laravel) so change it to yours.
-If not work,than you have to reinstall ca-cert package and it will
fixed the problem!

Related

Fakeroot on OSX Monterey

How can I install fakeroot on OSX Monterey
Using brew install fakeroot:
Warning: fakeroot has been deprecated because it does not build!
Error: fakeroot: no bottle available!
You can try to install from source with:
brew install --build-from-source fakeroot
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
Using brew from sources brew install --build-from-source fakeroot:
Warning: fakeroot has been deprecated because it does not build!
==> Downloading https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=0001-Implement-openat-2-wrapper-which-handles-optional-ar.patch;att=1;bug=766649
Already downloaded: /Users/michal/Library/Caches/Homebrew/downloads/e6d4dac68230de33e16ff9c899395f60a9dfbc703a45dc4e6bbed7e39eba44eb--0001-Implement-openat-2-wrapper-which-handles-optional-ar.patch
==> Downloading https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=0002-OS-X-10.10-introduced-id_t-int-in-gs-etpriority.patch;att=2;bug=766649
Already downloaded: /Users/michal/Library/Caches/Homebrew/downloads/446b9b9c92c24195ef463099617d6e92a00027a69e8ba4478a8a01b7d28e372b--0002-OS-X-10.10-introduced-id_t-int-in-gs-etpriority.patch
==> Downloading https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz
curl: (22) The requested URL returned error: 404
Error: fakeroot: Failed to download resource "fakeroot"
Download failed: https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz
Using sudo port install fakeroot:
---> Computing dependencies for fakeroot
---> Fetching archive for fakeroot
---> Attempting to fetch fakeroot-1.24_0+universal.darwin_21.arm64-x86_64.tbz2 from https://packages.macports.org/fakeroot
---> Attempting to fetch fakeroot-1.24_0+universal.darwin_21.arm64-x86_64.tbz2 from https://fra.de.packages.macports.org/fakeroot
---> Attempting to fetch fakeroot-1.24_0+universal.darwin_21.arm64-x86_64.tbz2 from https://nue.de.packages.macports.org/fakeroot
---> Building fakeroot
Error: Failed to build fakeroot: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_fakeroot/fakeroot/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port fakeroot failed
Any other ideas?
Here I found working version (only old 1.19),
http://mackyle.github.io/fakeroot/
I've installed by pkg installer, and all seems to be working

laravel error while installing using composer

ayat#ayat-Win MINGW64 /c/xampp/htdocs/laravel $ composer
create-project --prefer-dist laravel/laravel cms Creating a
"laravel/laravel" project at "./cms" Installing laravel/laravel
(v7.12.0)
Installing laravel/laravel (v7.12.0): Loading from cache Created project in C:\xampp\htdocs\laravel\cms #php -r "file_exists('.env')
|| copy('.env.example', '.env');" Loading composer repositories with
package information Updating dependencies (including require-dev)
Package operations: 99 installs, 0 updates, 0 removals
Installing voku/portable-ascii (1.5.2): Loading from cache
Installing symfony/polyfill-ctype (v1.18.0): Loading from cache - Installing phpoption/phpoption (1.7.5): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download phpoption/phpoption from dist: The
"https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525"
file could not be downloaded: failed to open stream: A connection
attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because
connected host has failed to respond.
Now trying to download from source

CERTIFICATE_VERIFY_FAILED while installing cairocffi with pip

When I run:
pip install cairocffi==0.9.0
I get:
...
Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) -- Some packages may not be found!
...
The error occurs due to some SSL certificates missing. To solve this I ran:
pip install certifi==2017.4.17

Error on Installing Laravel or Lumen

Whenever i install laravel i get this error. Is there a problem with my system or there is any firewell issue which is blocking the installation.
I am using ubuntu with PHP 5.6.30-7+deb.sury.org~trusty+1 (cli).
[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
Composer have to use a proxy.
Linke here: PHP Composer behind http proxy and Composer cannot download files
It will be like :
export HTTP_PROXY="http://my-corp-proxy.mcdonalds"
And then :
php composer.phar install

Fortrabbit deployment error with github

I'm trying to deploy a small app on fortrabbit but when I look in the console here is the error I have :
Pushing to user#repository.git
remote: Step1: Updating repository
remote: -> OK
remote:
remote: Step2: Deploying (strategy: no delete, excludes: no)
remote: -> OK
remote:
remote: Step3: Composer Hook
remote: -> Triggering install - get a coffee
remote: -> Installing way/form [dev-master 25d0667]
remote: -> Installing way/form [dev-master 25d0667]
remote: ! Composer threw 'RuntimeException'
remote: ! Failed to execute git clone --no-checkout 'git#github.com:JeffreyWay/Laravel-FormField.git' '/var/www/web/application/htdocs/vendor/way/form' && cd '/var/www/web/application/htdocs/vendor/way/form' && git remote add composer 'git#github.com:JeffreyWay/Laravel-FormField.git' && git fetch composer
remote: ! ~~~FAIL~~~
remote: Step4: Executing post-deploy script
remote: ~ PHP Warning: require(/var/www/web/application/htdocs/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/web/application/htdocs/bootstrap/autoload.php on line 17
remote: ~ PHP Fatal error: require(): Failed opening required '/var/www/web/application/htdocs/bootstrap/../vendor/autoload.php' (include_path='.:/opt/php/5.4/share') in /var/www/web/application/htdocs/bootstrap/autoload.php on line 17
remote: ~
remote: !! FAIL !!
remote: !! Script exited with error state
remote: !! FAIL !!
remote: > All Done <
To git#git1.eu1.frbit.com:repository.git
= [up to date] production -> production
2e5a195..4c9ddcc master -> master
updating local tracking ref 'refs/remotes/production/master'
Do you guys have any idea why I have the github error ?
Thanks a lot for your help.
Thoma
Ok found it,
I've connect with SSH to fortrabbit and try to do a composer install there.
This allowed me to add my github credentials and to clone the missing vendors :
13:23:51 user#fortrabbit:~/htdocs$ composer install
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing way/form (dev-master 25d0667)
Downloading: connection... Failed to download way/form from dist: The "https://api.github.com/repos/JeffreyWay/Laravel-FormField/zipball/25d06676a75f05db7cc10399e72ce13c922047ae" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing way/form (dev-master 25d0667)
Cloning 25d06676a75f05db7cc10399e72ce13c922047ae
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is {fingerprint}.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in /var/www/web/dir/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: myusername
Password:
Token successfully created
- Installing guzzle/guzzle (v3.9.2)
Downloading: 100%
- Installing way/generators (2.6.1)
Downloading: 100%
Writing lock file
Generating autoload files
Generating optimized class loader
Compiling common classes
Compiling views

Resources