Pernahkah kali menemukan error ketika melakukan update pada composer ternyata malah muncul error dengan pesan error butuh extension iconv? Jika sedang merasakan hal tersebut artikel ini akan mencoba menjadi solusi dari masalah anda. Selamat menimba ilmu.
$ composer update
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
– yajra/laravel-datatables-buttons v4.6.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons 4.0.x-dev requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons 4.0.x-dev requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.0.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.1.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.2.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.3.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.4.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.5.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– yajra/laravel-datatables-buttons v4.6.0 requires maatwebsite/excel ^3.0 -> satisfiable by maatwebsite/excel[3.1.15, 3.0.0, 3.0.0-alpha, 3.0.1, 3.0.10, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.x-dev, 3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.x-dev, 3.2.x-dev].
– maatwebsite/excel 3.1.15 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.0 requires phpoffice/phpspreadsheet ^1.1 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.0-alpha requires phpoffice/phpspreadsheet ^1.1 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.1 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.10 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.2 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.3 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.4 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.5 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.6 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.7 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.8 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.9 requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.0.x-dev requires phpoffice/phpspreadsheet ^1.2 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.0 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.1 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.10 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.11 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.12 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.13 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.14 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.15 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.2 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.3 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.4 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.5 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.6 requires phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.7 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.8 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.9 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.1.x-dev requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– maatwebsite/excel 3.2.x-dev requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.9.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2].
– phpoffice/phpspreadsheet 1.5.2 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.5.1 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.5.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.4.1 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.4.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.3.1 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.3.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.2.1 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.2.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.1.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.9.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.9.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.8.2 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.8.1 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.8.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.7.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– phpoffice/phpspreadsheet 1.6.0 requires ext-iconv * -> the requested PHP extension iconv is missing from your system.
– Installation request for yajra/laravel-datatables-buttons ^4.0 -> satisfiable by yajra/laravel-datatables-buttons[4.0.x-dev, v4.0.0, v4.1.0, v4.2.0, v4.3.0, v4.4.0, v4.5.0, v4.6.0].
To enable extensions, verify that they are enabled in your .ini files:
– /opt/cpanel/ea-php72/root/etc/php.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-bcmath.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-calendar.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-ctype.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-curl.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-dom.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-fileinfo.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-ftp.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-gd.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-gettext.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-imap.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-json.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-mbstring.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-mysqlnd.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-pdo.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-phar.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-posix.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-simplexml.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-soap.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-sockets.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-sqlite3.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-tokenizer.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-xml.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-xmlwriter.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-xsl.ini
– /opt/cpanel/ea-php72/root/etc/php.d/20-zip.ini
– /opt/cpanel/ea-php72/root/etc/php.d/30-mysqli.ini
– /opt/cpanel/ea-php72/root/etc/php.d/30-pdo_mysql.ini
– /opt/cpanel/ea-php72/root/etc/php.d/30-pdo_sqlite.ini
– /opt/cpanel/ea-php72/root/etc/php.d/30-wddx.ini
– /opt/cpanel/ea-php72/root/etc/php.d/30-xmlreader.ini
– /opt/cpanel/ea-php72/root/etc/php.d/zzzzzzz-pecl.ini
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.
Ternyata solusi sederhana sekali, tinggal install paket yang dibutuhkan, contoh disaya pakai php72 menjadi
# yum install ea-php72-php-iconv
Tara…. selesai sudah masalahnya dan selamat melanjutkan kehidupan dan salam seru dalam belajar. (ms)