I am trying to install moodle but it shows php-gd extension is missing/should be enabled.
However the gd is already installed and latest, and when I command php -v
I get the following error as indicated below.
PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib64/php/modules/gd.so (/lib64/libraqm.so.0: undefined symbol: hb_ft_font_set_load_flags), /usr/lib64/php/modules/gd.so.so (/usr/lib64/php/modules/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.3.17 (cli) (built: Apr 14 2020 08:29:22) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.17, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.17, Copyright (c) 1999-2018, by Zend Technologies
I did a lot of editing but I could not find a single solution. Please help
2
Answers
Run:
libraqm.so
provided bylibraqm-devel
.Install
libraqm-devel
will also install freetype and harfbuzz, which providehb_ft_font_set_load_flags
.I had the same problem:
A quick search in google told me that
hb_ft_font_set_load_flags
comes from HarfBuzz (https://harfbuzz.github.io/harfbuzz-hb-ft.html).I installed it with
yum install harfbuzz
, and after that the warning is gone: