Skip to content

The laravel-zip-fix repository offers a solution to installation issues encountered when setting up Laravel projects.

Notifications You must be signed in to change notification settings

alamgir-ahosain/laravel-zip-installation-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

laravel zip installation fix

The laravel-zip-fix repository offers a solution to installation issues encountered when setting up Laravel projects.

Problem Description

When attempting to install Laravel, you might encounter the following error message:

Failed to download doctrine/inflector from dist: The zip extension and unzip/7z commands are both missing, 
skipping. is: D:\Software\xmp\php\php.ini
The php.ini used by your command-line PHP
Now trying to download from source Syncing doctrine/inflector (2.0.10) into cache.

Screenshot (362)

Cause

This error typically occurs due to:

  • The PHP zip extension not being enabled.
  • Missing unzip or 7z utilities on your system.

Solution

Step 1: Enable the PHP Zip Extension

  1. Locate your php.ini file:

    • The path for the command-line PHP configuration is displayed in your error message.
  2. Edit php.ini:

    • Open the php.ini file in a text editor.
    • Find the following line(you can search with using ctrl+f command ) and ensure it's uncommented (remove the semicolon ; if present):
      extension=zip
  3. Now try to Laravel install again.At this stage ,your problem may be Solved.

Step 2: Install Unzip/7z Utility

  • For Windows:
    • Download and install 7-Zip.
  • For Ubuntu/Debian:
    sudo apt-get install unzip
    

Additional Resources

About

The laravel-zip-fix repository offers a solution to installation issues encountered when setting up Laravel projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published