Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jun 2022 17:47:17 -1000
From:      bruce@hawaii-pacific.com
To:        freebsd-ports@freebsd.org
Subject:   graphics/gd broken
Message-ID:  <7b2a7717-5eb5-c829-f82b-3e084f56b401@hawaii-pacific.com>

next in thread | raw e-mail | index | archive | help
Hi,

I have both php74-gd and gd installed.  When I run "service php-fpm 
onestart" I get the following output:


Performing sanity check on php-fpm configuration:
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Invalid library (maybe not a PHP library) '/usr/local/lib/libgd.so' in 
Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Unable to load dynamic library 'libgd.so' (tried: 
/usr/local/lib/php/20190902/libgd.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so&quot;), 
/usr/local/lib/php/20190902/libgd.so.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so.so&quot;)) in Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: configuration file 
/usr/local/etc/php-fpm.conf test is successful

Stopping php_fpm.
Waiting for PIDS: 1622.
Performing sanity check on php-fpm configuration:
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Invalid library (maybe not a PHP library) '/usr/local/lib/libgd.so' in 
Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Unable to load dynamic library 'libgd.so' (tried: 
/usr/local/lib/php/20190902/libgd.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so&quot;), 
/usr/local/lib/php/20190902/libgd.so.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so.so&quot;)) in Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: configuration file 
/usr/local/etc/php-fpm.conf test is successful

Starting php_fpm.
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Invalid library (maybe not a PHP library) '/usr/local/lib/libgd.so' in 
Unknown on line 0
[07-Jun-2022 17:38:50] NOTICE: PHP message: PHP Warning:  PHP Startup: 
Unable to load dynamic library 'libgd.so' (tried: 
/usr/local/lib/php/20190902/libgd.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so&quot;), 
/usr/local/lib/php/20190902/libgd.so.so (Cannot open 
&quot;/usr/local/lib/php/20190902/libgd.so.so&quot;)) in Unknown on line 0

libgd.so is located in /usr/local/lib, not /usr/local/lib/php/20190902/ .

Can anyone help with this?

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7b2a7717-5eb5-c829-f82b-3e084f56b401>