I have a problem Install Laravel

General support questions
diamantes.sabio
Posts: 1
Joined: 2018/02/13 08:38:55

I have a problem Install Laravel

Postby diamantes.sabio » 2018/02/13 08:57:36

Please help me about this problem
My environment of server
- CentOS Linux release 7.4.1708
- PHP 7.2.2 (cli)
- Package php72-php-pecl-zip-1.15.2-1.el7.remi.x86_64 already installed and latest version

[root@bossop html]# composer global require "laravel/installer"
Changed current directory to /root/.config/composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^2.0 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v2.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^2.0 -> satisfiable by laravel/installer[v2.0.0, v2.0.1].

To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
- /etc/php.d/20-bz2.ini
- /etc/php.d/20-calendar.ini
- /etc/php.d/20-ctype.ini
- /etc/php.d/20-curl.ini
- /etc/php.d/20-dom.ini
- /etc/php.d/20-exif.ini
- /etc/php.d/20-fileinfo.ini
- /etc/php.d/20-ftp.ini
- /etc/php.d/20-gd.ini
- /etc/php.d/20-gettext.ini
- /etc/php.d/20-iconv.ini
- /etc/php.d/20-json.ini
- /etc/php.d/20-mbstring.ini
- /etc/php.d/20-mysqlnd.ini
- /etc/php.d/20-pdo.ini
- /etc/php.d/20-pgsql.ini
- /etc/php.d/20-phar.ini
- /etc/php.d/20-posix.ini
- /etc/php.d/20-shmop.ini
- /etc/php.d/20-simplexml.ini
- /etc/php.d/20-sockets.ini
- /etc/php.d/20-sqlite3.ini
- /etc/php.d/20-sysvmsg.ini
- /etc/php.d/20-sysvsem.ini
- /etc/php.d/20-sysvshm.ini
- /etc/php.d/20-tokenizer.ini
- /etc/php.d/20-xml.ini
- /etc/php.d/20-xmlwriter.ini
- /etc/php.d/20-xsl.ini
- /etc/php.d/30-mcrypt.ini
- /etc/php.d/30-mysqli.ini
- /etc/php.d/30-pdo_mysql.ini
- /etc/php.d/30-pdo_pgsql.ini
- /etc/php.d/30-pdo_sqlite.ini
- /etc/php.d/30-wddx.ini
- /etc/php.d/30-xmlreader.ini
- /etc/php.d/40-apcu.ini
- /etc/php.d/40-igbinary.ini
- /etc/php.d/40-memcache.ini
- /etc/php.d/40-msgpack.ini
- /etc/php.d/50-memcached.ini
- /etc/php.d/50-mongodb.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed


How to install PHP extension zip on my system?

User avatar
remirepo
Posts: 273
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: I have a problem Install Laravel

Postby remirepo » 2018/02/13 13:04:27

Check which is your currently PHP version, and from which provider

Code: Select all

php -v
rpm -qf $(which php)


If php--cli from remi-php72 you need php-pecl-zip
if php72-php--cli from remi-safe you need php72-php-pecl-zip

For any other provider, I don"t know.
Remi's Repository - Forum - Blog