Ubuntu 22.04 php compilation issue - missing libgd

MMarko

Verified User
Joined
May 10, 2006
Messages
70
Location
eu
Just wanted to inform that compilation of PHP fails on Ubuntu 22.04 (based on bookworm/sid) because prerequisite libgd-dev library was not installed so might want to update the script.

apt install libgd-dev sorts the issue but automatic setup of DirectAdmin fails for that reason
 
hi @MMarko, could you give us more details about the issue? Fresh PHP 8.1 build on Ubuntu 22 systems runs fine. It uses the bundled version of gd, phpinfo(); reports:

Code:
gd

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.11.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.6.37
WBMP Support => enabled
XBM Support => enabled
WebP Support => enabled
BMP Support => enabled

Maybe you have customized the configure script and use --with-external-gd?
 
Hi,

my bad, it seems that dpkg was running during build and that custombuild was not able to install prerequisite.

2023/02/17 15:02:06 info executing task task=action=rewrite&value=httpd
PHP 8.1.14 Installed.
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 110317 (apt)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Installing packages 'libgd-dev' using apt-get attempt 1/3 failed
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 110317 (apt)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Installing packages 'libgd-dev' using apt-get attempt 2/3 failed
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 110317 (apt)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Installing packages 'libgd-dev' using apt-get attempt 3/3 failed

Also error was for webalizer not php, isn't webalizer deprecated?
 
Back
Top