Fatal error call to undefined function imagecreatefromjpeg

I’ve searched for this and the solutions provided in past questions are completely incomprehensible to me. Whenever I run functions like imagecreatefromjpeg , I get this:

Fatal error: Call to undefined function imagecreatefromjpeg() .

I’m working on a new install of PHP; my last installation never had this problem. I don’t get what’s going on.

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux — A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Opencart возвращает ошибку:

Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg() in /usr/share/nginx/html/katod/system/library/image.php:26 Stack trace: #0 /usr/share/nginx/html/katod/admin/model/tool/image.php(33): Image->__construct(‘/usr/share/ngin. ‘) #1 /usr/share/nginx/html/katod/system/engine/loader.php(178): ModelToolImage->resize(‘catalog/demo/sa. ‘, 100, 100) #2 /usr/share/nginx/html/katod/system/engine/proxy.php(25): Loader->(Array, Array) #3 /usr/share/nginx/html/katod/admin/controller/catalog/product.php(1210): Proxy->__call(‘resize’, Array) #4 /usr/share/nginx/html/katod/admin/controller/catalog/product.php(116): ControllerCatalogProduct->getForm() #5 /usr/share/nginx/html/katod/system/engine/action.php(51): ControllerCatalogProduct->edit() #6 /usr/share/nginx/html/katod/admin/controller/startup/router.php(26): Action->execute(Object(Registry), Array) #7 /usr/share/nginx/html/katod/system/engine/action.php(51): ControllerStartupRouter->index() #8 /usr/share/nginx/html/katod/system/engine/front.php(34 in /usr/share/nginx/html/katod/system/library/image.php on line 26

RUN apt-get update
&& apt-get install -y
libpq-dev
libldb-dev
libldap2-dev
libxml2-dev
libjpeg-dev
libpng-dev
libpcre3-dev
libedit2
curl
—no-install-recommends
&& docker-php-ext-install mysqli pdo_mysql soap mbstring
&& docker-php-ext-configure gd —enable-gd-native-ttf —with-jpeg-dir=/usr/lib/x86_64-linux-gnu —with-png-dir=/usr/lib/x86_64-linux-gnu
&& docker-php-ext-install gd

Погуглив, нашла только варианты, когда надо добавить в докерфайл библиотеки libjpeg-dev и libpng-dev, но они уже есть.
php -i пишет

gd
GD Support => enabled
GD headers Version => 2.1.1
GD library Version => 2.1.1
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.6.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.2.54
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled
WebP Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

В информации phpinfo() про gd вообще ничего не упоминается.
Пробовала пересобрать контейнеры, ничего не изменилось.


[an error occurred while processing the directive]
Карта сайта