Description
I am trying to install mpdf library by executing composer require mpdf/mpdf command but its not working. it gives this error as per attatched screenshot.
Steps To Reproduce
Create your project directory then go into it:
mkdir -p ~/Sites/magento
cd $_
# Run this automated one-liner from the directory you want to install your project.
`curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.7 community
`
Install sample data
After the above installation is complete, run the following lines to install sample data:
2 .Then install composer `bin/composer install
`
3. Then execute this command: `composer require mpdf/mpdf`
**Expected Result**
It should be install mpdf library.
**Actual Result**
It gives error as per below
Problem 1
mpdf/mpdf v8.2.4 requires ext-gd * -> the requested PHP extension gd is missing from your system.
mpdf/mpdf v8.2.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
mpdf/mpdf v8.2.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
mpdf/mpdf v8.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
mpdf/mpdf v8.2.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Installation request for mpdf/mpdf ^8.2 -> satisfiable by mpdf/mpdf[v8.2.0, v8.2.1, v8.2.2, v8.2.3, v8.2.4].
To enable extensions, verify that they are enabled in your .ini files:
/etc/php/7.4/cli/php.ini
/etc/php/7.4/cli/conf.d/10-opcache.ini
/etc/php/7.4/cli/conf.d/10-pdo.ini
/etc/php/7.4/cli/conf.d/20-calendar.ini
/etc/php/7.4/cli/conf.d/20-ctype.ini
/etc/php/7.4/cli/conf.d/20-exif.ini
/etc/php/7.4/cli/conf.d/20-ffi.ini
/etc/php/7.4/cli/conf.d/20-fileinfo.ini
/etc/php/7.4/cli/conf.d/20-ftp.ini
/etc/php/7.4/cli/conf.d/20-gettext.ini
/etc/php/7.4/cli/conf.d/20-iconv.ini
/etc/php/7.4/cli/conf.d/20-json.ini
/etc/php/7.4/cli/conf.d/20-mbstring.ini
/etc/php/7.4/cli/conf.d/20-phar.ini
/etc/php/7.4/cli/conf.d/20-posix.ini
/etc/php/7.4/cli/conf.d/20-readline.ini
/etc/php/7.4/cli/conf.d/20-shmop.ini
/etc/php/7.4/cli/conf.d/20-sockets.ini
/etc/php/7.4/cli/conf.d/20-sysvmsg.ini
/etc/php/7.4/cli/conf.d/20-sysvsem.ini
/etc/php/7.4/cli/conf.d/20-sysvshm.ini
/etc/php/7.4/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.
Description I am trying to install mpdf library by executing
composer require mpdf/mpdf
command but its not working. it gives this error as per attatched screenshot.Steps To Reproduce
Create your project directory then go into it:
bin/magento sampledata:deploy bin/magento setup:upgrade
Problem 1
Installation request for mpdf/mpdf ^8.2 -> satisfiable by mpdf/mpdf[v8.2.0, v8.2.1, v8.2.2, v8.2.3, v8.2.4].
To enable extensions, verify that they are enabled in your .ini files:
php --ini
inside terminal to see which files are used by PHP in CLI mode.