我正在尝试使用我的Ubuntu PC上的composer安装laravel安装程序,但是我在安装过程中遇到了这个错误.`您的要求无法解析为可安装的软件包集.
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
- …Run Code Online (Sandbox Code Playgroud) "PHP模块gd:缺少"我收到了这样的错误.而我正在尝试安装php5-gd.
apt-get install php5-gd
Run Code Online (Sandbox Code Playgroud)
我使用的是Ubuntu 16.10和PHP版本7.我进行了所有更新.
当我尝试安装时php5-gd,我收到如下错误.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'php5-gd' has no installation candidate
Run Code Online (Sandbox Code Playgroud)