Closed pscheit closed 3 weeks ago
Yes it still works on all recent versions of php. On debian php-dev should have the missing file.
Okay, figured it out. It seems to be that I need to install gd before, so that it compiles. So need to arrange the commands a bit different:
RUN docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install pdo pdo_mysql intl sockets zip gd \
&& pecl install -o -f redis ps && docker-php-ext-enable redis ps
so do pecl install ps after docker-php-ext-install gd
Hey,
I tried to install ps in a Dockerfile, but got this error:
My Dockerfile in a nutshell
FROM php:8.2-fpm AS phpbase
RUN docker-php-ext-install pdo pdo_mysql intl sockets gd zip
RUN apt-get install pslib-dev RUN pecl install -o -f ps
RUN docker-php-ext-configure ps --disable-gd
RUN docker-php-ext-install ps