[GH-ISSUE #516] codeitnowin/barcode 3.0.5 requires ext-gd * -> the requested PHP extension gd is missing from your system. #388

Closed
opened 2026-02-25 21:34:54 +03:00 by kerem · 11 comments
Owner

Originally created by @jeremiah on GitHub (Sep 14, 2021).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/516

Originally assigned to: @jasonmunro on GitHub.

🐛 Bugreport

Running composer install in cypht-temp/cypht-master/ produces an error. This prevents the installation of cypht.
I see that ext-gd is listed in the install page but it's only listed as "suggests" in composer.json.

Version & Environment

Debian 10, php 7.3

Steps to reproduce

  1. cd cypht-temp/cypht-master/
  2. composer install
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for codeitnowin/barcode 3.0.5 -> satisfiable by codeitnowin/barcode[3.0.5].
    - codeitnowin/barcode 3.0.5 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Originally created by @jeremiah on GitHub (Sep 14, 2021). Original GitHub issue: https://github.com/cypht-org/cypht/issues/516 Originally assigned to: @jasonmunro on GitHub. ## 🐛 Bugreport Running `composer install` in cypht-temp/cypht-master/ produces an error. This prevents the installation of cypht. I see that ext-gd is listed in the install page but it's only listed as "suggests" in composer.json. ### Version & Environment Debian 10, php 7.3 ### Steps to reproduce 1. cd cypht-temp/cypht-master/ 2. composer install ``` Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for codeitnowin/barcode 3.0.5 -> satisfiable by codeitnowin/barcode[3.0.5]. - codeitnowin/barcode 3.0.5 requires ext-gd * -> the requested PHP extension gd is missing from your system. ```
kerem closed this issue 2026-02-25 21:34:54 +03:00
Author
Owner

@jeremiah commented on GitHub (Sep 14, 2021):

Installing php-gd fixes this error on my system.

<!-- gh-comment-id:918711131 --> @jeremiah commented on GitHub (Sep 14, 2021): Installing php-gd fixes this error on my system.
Author
Owner

@jasonmunro commented on GitHub (Sep 14, 2021):

yep, the gd requirement should be moved. Thanks for the feedback!

<!-- gh-comment-id:919478391 --> @jasonmunro commented on GitHub (Sep 14, 2021): yep, the gd requirement should be moved. Thanks for the feedback!
Author
Owner

@marclaporte commented on GitHub (Sep 15, 2021):

AFAICT, this is only used for https://github.com/jasonmunro/cypht/blob/master/modules/2fa/modules.php which is not a central feature.

Idea:

  1. Make ext-gd a suggestion in the installer
  2. Have a friendly error message on attempt to use feature with missing dependency
<!-- gh-comment-id:919627620 --> @marclaporte commented on GitHub (Sep 15, 2021): AFAICT, this is only used for https://github.com/jasonmunro/cypht/blob/master/modules/2fa/modules.php which is not a central feature. Idea: 1. Make ext-gd a suggestion in the installer 2. Have a friendly error message on attempt to use feature with missing dependency
Author
Owner

@jeremiah commented on GitHub (Sep 15, 2021):

Good point @marclaporte I've forgotten what error message I saw but I felt (at least at the time) that I couldn't install without ext-gd. I saw that it was used for images which is a pretty standard feature if web mail so I thought I ought to install it anyway. I think your approach is the right one.

<!-- gh-comment-id:920347062 --> @jeremiah commented on GitHub (Sep 15, 2021): Good point @marclaporte I've forgotten what error message I saw but I felt (at least at the time) that I couldn't install without ext-gd. I saw that it was used for images which is a pretty standard feature if web mail so I thought I ought to install it anyway. I think your approach is the right one.
Author
Owner

@neildarlow commented on GitHub (Sep 16, 2021):

I'd like to see the need for the GD extension to be optional. I have a patch which modifies composer.json and composer.lock to remove this dependency so I don't have to install it.

<!-- gh-comment-id:921225364 --> @neildarlow commented on GitHub (Sep 16, 2021): I'd like to see the need for the GD extension to be optional. I have a patch which modifies composer.json and composer.lock to remove this dependency so I don't have to install it.
Author
Owner

@jeremiah commented on GitHub (Dec 27, 2021):

I have a plan to test the installation of cypht on the new version of Debian. I'll review that bug as part of that work.

<!-- gh-comment-id:1001784254 --> @jeremiah commented on GitHub (Dec 27, 2021): I have a plan to test the installation of cypht on the new version of Debian. I'll review that bug as part of that work.
Author
Owner

@ElvisAns commented on GitHub (Jul 22, 2022):

Hi , i am affraid but the Qr code library we are using requires Imagick extension to run properly....

<!-- gh-comment-id:1192237727 --> @ElvisAns commented on GitHub (Jul 22, 2022): Hi , i am affraid but the Qr code library we are using requires Imagick extension to run properly....
Author
Owner

@ElvisAns commented on GitHub (Jul 22, 2022):

GD is so then no longer needed ...

<!-- gh-comment-id:1192237993 --> @ElvisAns commented on GitHub (Jul 22, 2022): GD is so then no longer needed ...
Author
Owner

@ElvisAns commented on GitHub (Jul 22, 2022):

@jeremiah we have moved to bacon/bacon-qr-code for QR code generation as codeitnowin/barcode reached the end life support. Please check on https://github.com/jasonmunro/cypht/issues/562

<!-- gh-comment-id:1192240433 --> @ElvisAns commented on GitHub (Jul 22, 2022): @jeremiah we have moved to bacon/bacon-qr-code for QR code generation as codeitnowin/barcode reached the end life support. Please check on https://github.com/jasonmunro/cypht/issues/562
Author
Owner

@jeremiah commented on GitHub (Jul 22, 2022):

I would love to test this out and update my cypht install at the same time. I'm traveling at the moment and will be back towards the end of next week.

<!-- gh-comment-id:1192760960 --> @jeremiah commented on GitHub (Jul 22, 2022): I would love to test this out and update my cypht install at the same time. I'm traveling at the moment and will be back towards the end of next week.
Author
Owner

@ElvisAns commented on GitHub (Jul 22, 2022):

Great 👍

<!-- gh-comment-id:1192912103 --> @ElvisAns commented on GitHub (Jul 22, 2022): Great 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#388
No description provided.