shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.89k stars 337 forks source link

PHP8.3 + gd: Unable to load dynamic library 'gd.so' #767

Closed tinect closed 11 months ago

tinect commented 11 months ago

Describe the bug PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20230831/gd.so (/usr/lib/php/20230831/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20230831/gd.so.so (/usr/lib/php/20230831/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Version

Runners

Operating systems ubuntu-latest

PHP versions 8.3

To Reproduce

- uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'
          tools: composer:v2

Expected behavior No warning and working setup.

Additional context https://github.com/tinect/flysystem-garbage/actions/runs/6208371225/job/16855844375#step:3:13

Are you willing to submit a PR?

shivammathur commented 11 months ago

@tinect

Thanks for reporting this.

Fixed in https://github.com/shivammathur/php-builder/commit/7e17fdd791a26c53b038c2536fab21b937a7faca

Please restart your workflow, it should work now.

jasonvarga commented 10 months ago

If I'm still seeing the warning, have I done something wrong?

Here's the log if it helps.

2023-10-30T15:03:44.9458291Z [command]/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh
2023-10-30T15:03:44.9594276Z 
2023-10-30T15:03:44.9595014Z ==> Setup PHP
2023-10-30T15:03:56.7729978Z ✓ PHP Installed PHP 8.3.0-dev (81e236cde56ff006d9c661140790b42f40ffc43b)
2023-10-30T15:03:56.7730858Z 
2023-10-30T15:03:56.7731118Z ==> Setup Extensions
2023-10-30T15:03:56.7901978Z PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20230831/gd.so (/usr/lib/php/20230831/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20230831/gd.so.so (/usr/lib/php/20230831/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
2023-10-30T15:03:56.8308536Z ✓ dom Enabled
2023-10-30T15:03:56.8356136Z ✓ curl Enabled
2023-10-30T15:03:56.8390827Z ✓ libxml Enabled
2023-10-30T15:03:56.8429420Z ✓ mbstring Enabled
2023-10-30T15:03:56.8462828Z ✓ zip Enabled
2023-10-30T15:03:56.8500364Z ✓ pcntl Enabled
2023-10-30T15:03:56.8535969Z ✓ pdo Enabled
2023-10-30T15:03:56.8576207Z ✓ sqlite3 Enabled
2023-10-30T15:03:56.8594948Z ✓ pdo_sqlite Enabled
2023-10-30T15:03:56.8631118Z ✓ bcmath Enabled
2023-10-30T15:03:56.8666476Z ✓ soap Enabled
2023-10-30T15:03:56.8702072Z ✓ intl Enabled
2023-10-30T15:03:56.8885453Z PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20230831/gd.so (/usr/lib/php/20230831/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20230831/gd.so.so (/usr/lib/php/20230831/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
2023-10-30T15:03:57.0762114Z PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20230831/gd.so (/usr/lib/php/20230831/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20230831/gd.so.so (/usr/lib/php/20230831/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
2023-10-30T15:04:16.5070323Z ✓ gd Installed and enabled
2023-10-30T15:04:16.5224924Z ✓ exif Enabled
2023-10-30T15:04:16.5258791Z ✓ iconv Enabled
2023-10-30T15:04:16.5295306Z ✓ imagick Enabled
2023-10-30T15:04:16.5332825Z ✓ fileinfo Enabled
2023-10-30T15:04:16.5333517Z 
2023-10-30T15:04:16.5333869Z ==> Setup Tools
2023-10-30T15:04:16.9475785Z ✓ composer Added composer 2.6.5
2023-10-30T15:04:16.9476566Z 
2023-10-30T15:04:16.9476893Z ==> Setup Coverage
2023-10-30T15:04:17.2450975Z ✓ none Disabled Xdebug and PCOV
2023-10-30T15:04:17.2451778Z 
2023-10-30T15:04:17.2452132Z ==> #StandWithUkraine
2023-10-30T15:04:17.2453185Z ✓ read-more https://setup-php.com/support-ukraine
shivammathur commented 10 months ago

@jasonvarga Please reproduce the bug in a public workflow and create a new issue with the details.