Tôi đang cố gắng cài đặt trình cài đặt Laravel với nhà soạn nhạc trên máy tính Ubuntu của mình, nhưng tôi gặp phải lỗi này trong khi cài đặt. `Yêu cầu của bạn không thể được giải quyết cho một tập hợp các gói có thể cài đặt.Không thể cài đặt trình cài đặt Laravel qua nhà soạn nhạc
Problem 1
- laravel/installer v1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v1.4.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^1.4 -> satisfiable by laravel/installer[v1.4.0, v1.4.1].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
`
Các lỗi xuất hiện sau đó tôi sử dụng nhận xét này:
composer global require "laravel/installer"
Âm thanh như bạn cần phải cài đặt phần mở rộng zip php – aynber
có thể trùng lặp của [Làm thế nào để cài đặt các phần mở rộng PHP trên Ubuntu? ] (https://stackoverflow.com/questions/41589180/how-do-i-install-these-php-extensions-on-ubuntu) – aynber