Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mojo2405's avatar

failed to install with composer

Hi,

I'm using centos 6.9 . I installed composer successfully and tried to install laravel but I cannot pass the "require" phase. Need to say - I'm using php 5.6 , all required extensions are installed , I have zip installed from yum , and I think I'm ready to go. My problem is that I'm getting the following error when running omposer global require "laravel/installer" , any help will be appriciated :

Changed current directory to /labhome/eitansh/.composer Using version ^1.4 for laravel/installer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 11 installs, 0 updates, 0 removals

  • Installing symfony/process (v3.3.12): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/symfony/process/bc2f709078113d8ef91e0cacc0ea8cf2' -d '/labhome/eitansh/.composer/vendor/composer/6f74b962'

[/labhome/eitansh/.composer/vendor/symfony/process/bc2f709078113d8ef91e0cacc0ea8cf2] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/symfony/process/bc2f709078113d8ef91e0cacc0ea8cf2 or /labhome/eitansh/.composer/vendor/symfony/process/bc2f709078113d8ef91e0cacc0ea8cf2.zip, and cannot find /labhome/eitansh/.composer/vendor/symfony/process/bc2f709078113d8ef91e0cacc0ea8cf2.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing symfony/filesystem (v3.3.12): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/symfony/filesystem/bef6b48caa2964b7eaedbb89410d408b' -d '/labhome/eitansh/.composer/vendor/composer/2080462b'

[/labhome/eitansh/.composer/vendor/symfony/filesystem/bef6b48caa2964b7eaedbb89410d408b] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/symfony/filesystem/bef6b48caa2964b7eaedbb89410d408b or /labhome/eitansh/.composer/vendor/symfony/filesystem/bef6b48caa2964b7eaedbb89410d408b.zip, and cannot find /labhome/eitansh/.composer/vendor/symfony/filesystem/bef6b48caa2964b7eaedbb89410d408b.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing psr/log (1.0.2): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/psr/log/87a60eb3643055c9b42987ee5812ea3d' -d '/labhome/eitansh/.composer/vendor/composer/29e5656e'

[/labhome/eitansh/.composer/vendor/psr/log/87a60eb3643055c9b42987ee5812ea3d] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/psr/log/87a60eb3643055c9b42987ee5812ea3d or /labhome/eitansh/.composer/vendor/psr/log/87a60eb3643055c9b42987ee5812ea3d.zip, and cannot find /labhome/eitansh/.composer/vendor/psr/log/87a60eb3643055c9b42987ee5812ea3d.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing symfony/debug (v3.3.12): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/symfony/debug/24278bb0e27c82362a52b464d8cc993c' -d '/labhome/eitansh/.composer/vendor/composer/08b44bef'

[/labhome/eitansh/.composer/vendor/symfony/debug/24278bb0e27c82362a52b464d8cc993c] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/symfony/debug/24278bb0e27c82362a52b464d8cc993c or /labhome/eitansh/.composer/vendor/symfony/debug/24278bb0e27c82362a52b464d8cc993c.zip, and cannot find /labhome/eitansh/.composer/vendor/symfony/debug/24278bb0e27c82362a52b464d8cc993c.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing symfony/polyfill-mbstring (v1.6.0): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/symfony/polyfill-mbstring/a0c142b236c4817296ad208404b7f342' -d '/labhome/eitansh/.composer/vendor/composer/5ed853b5'

[/labhome/eitansh/.composer/vendor/symfony/polyfill-mbstring/a0c142b236c4817296ad208404b7f342] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/symfony/polyfill-mbstring/a0c142b236c4817296ad208404b7f342 or /labhome/eitansh/.composer/vendor/symfony/polyfill-mbstring/a0c142b236c4817296ad208404b7f342.zip, and cannot find /labhome/eitansh/.composer/vendor/symfony/polyfill-mbstring/a0c142b236c4817296ad208404b7f342.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing symfony/console (v3.3.12): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/symfony/console/552726960bb15088814acb538374ce57' -d '/labhome/eitansh/.composer/vendor/composer/b9412f38'

[/labhome/eitansh/.composer/vendor/symfony/console/552726960bb15088814acb538374ce57] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/symfony/console/552726960bb15088814acb538374ce57 or /labhome/eitansh/.composer/vendor/symfony/console/552726960bb15088814acb538374ce57.zip, and cannot find /labhome/eitansh/.composer/vendor/symfony/console/552726960bb15088814acb538374ce57.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing guzzlehttp/promises (v1.3.1): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/guzzlehttp/promises/e6c58802d58e572d7051fbcb87b6b182' -d '/labhome/eitansh/.composer/vendor/composer/19727f79'

[/labhome/eitansh/.composer/vendor/guzzlehttp/promises/e6c58802d58e572d7051fbcb87b6b182] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/guzzlehttp/promises/e6c58802d58e572d7051fbcb87b6b182 or /labhome/eitansh/.composer/vendor/guzzlehttp/promises/e6c58802d58e572d7051fbcb87b6b182.zip, and cannot find /labhome/eitansh/.composer/vendor/guzzlehttp/promises/e6c58802d58e572d7051fbcb87b6b182.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing psr/http-message (1.0.1): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/psr/http-message/d7b0e9ad3431706e26ea3e8af3f5d938' -d '/labhome/eitansh/.composer/vendor/composer/529c9b13'

[/labhome/eitansh/.composer/vendor/psr/http-message/d7b0e9ad3431706e26ea3e8af3f5d938] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/psr/http-message/d7b0e9ad3431706e26ea3e8af3f5d938 or /labhome/eitansh/.composer/vendor/psr/http-message/d7b0e9ad3431706e26ea3e8af3f5d938.zip, and cannot find /labhome/eitansh/.composer/vendor/psr/http-message/d7b0e9ad3431706e26ea3e8af3f5d938.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class                                                       
  • Installing guzzlehttp/psr7 (1.4.2): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/guzzlehttp/psr7/04b80ca798b2c349fc056add9712f9ee' -d '/labhome/eitansh/.composer/vendor/composer/41adde05'

[/labhome/eitansh/.composer/vendor/guzzlehttp/psr7/04b80ca798b2c349fc056add9712f9ee] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/guzzlehttp/psr7/04b80ca798b2c349fc056add9712f9ee or /labhome/eitansh/.composer/vendor/guzzlehttp/psr7/04b80ca798b2c349fc056add9712f9ee.zip, and cannot find /labhome/eitansh/.composer/vendor/guzzlehttp/psr7/04b80ca798b2c349fc056add9712f9ee.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
  • Installing guzzlehttp/guzzle (6.3.0): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/guzzlehttp/guzzle/99caf49edc0fe22c1b0db668449a2546' -d '/labhome/eitansh/.composer/vendor/composer/73d33eb7'

[/labhome/eitansh/.composer/vendor/guzzlehttp/guzzle/99caf49edc0fe22c1b0db668449a2546] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/guzzlehttp/guzzle/99caf49edc0fe22c1b0db668449a2546 or /labhome/eitansh/.composer/vendor/guzzlehttp/guzzle/99caf49edc0fe22c1b0db668449a2546.zip, and cannot find /labhome/eitansh/.composer/vendor/guzzlehttp/guzzle/99caf49edc0fe22c1b0db668449a2546.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
  • Installing laravel/installer (v1.4.1): Downloading (100%) Failed to execute unzip -qq '/labhome/eitansh/.composer/vendor/laravel/installer/6069b0e03eb134a6d4f63e090152b7b3' -d '/labhome/eitansh/.composer/vendor/composer/ed4d1084'

[/labhome/eitansh/.composer/vendor/laravel/installer/6069b0e03eb134a6d4f63e090152b7b3] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /labhome/eitansh/.composer/vendor/laravel/installer/6069b0e03eb134a6d4f63e090152b7b3 or /labhome/eitansh/.composer/vendor/laravel/installer/6069b0e03eb134a6d4f63e090152b7b3.zip, and cannot find /labhome/eitansh/.composer/vendor/laravel/installer/6069b0e03eb134a6d4f63e090152b7b3.ZIP, period.

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Skipped installation of bin laravel for package laravel/installer: file not found in package

symfony/console suggests installing symfony/event-dispatcher ()

Installation failed, reverting ./composer.json to its original content.

[Composer\Repository\InvalidRepositoryException] Invalid repository data in /labhome/eitansh/.composer/vendor/composer/installed.json, packages could not be loaded: [UnexpectedValueException] Could not parse package list from the repository

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...

0 likes
15 replies
Robstar's avatar

I think the lack of replies relate to the fact you seem to have copied your whole console :)

A quick glance over your wall of text indicates your system is unable extract files on the cli. I'm also not convinced composer is installed correctly and has the correct permissions on your server. I'd try removing the current composer install and starting again if possible.

Have you tried clearing the composer cache directory or ran a composer install without cache?

Whilst it doesn't help here, I always find using CentOS causes issues. Everything always run much more smoothly with Ubuntu.

Have you tried Forge too - that seriously eliminates issues like this and allows you to spend time developing as opposed to things like this thread.

Without Googling any of this it's hard to say :/

1 like
mojo2405's avatar

@Robstar Thanks for your comment. I did tried to clear the cache and it didnt help. Unfortunately I can not change my OS to ubuntu. I'll try to remove and reinstall composer l. What do you mean - Forge ?

Thanks again for your comment.

bart's avatar

I have the exact same issue on OSX. Any idea what the reason is?

irfanbaigse's avatar

I am facing the same issue on mac

End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/Baig/Workspace/****/vendor/phpunit/phpunit/11dfa6f27c00297ab49f99babf4010bb or

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
mojo2405's avatar
composer clearcache

fixed my problem.

10 likes
joshpj1's avatar

I'm encountering this same issue when using devilbox. Clearing the composer cache isn't working for me. Has anyone else come across this?

etKadosh's avatar

I had the same problem. But it was on windows. The issue with mine was, anti-virus blocking composer from doing the operation. So I disabled my anti-virus for 10 minutes and after installation put it back on. I hope this helps someone.

Josselyn's avatar

Hi, i have the solution.

You only need delete in c:\program file\7-Zip,

after you need, reinstall this software. 7-zip. You need download this software of webpage author.

after execute

laravel new your_app

and ready.

1 like
rockpuneet333's avatar

It's windows and using sail composer. Still having issue. Please help me out

Please or to participate in this conversation.