-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFI issue #221
Comments
Hi @leganz, Maybe unable to find libvips? But you'd need to give a lot more information. |
Same error. libvips setted to PATH. Tried vips-dev-w64-all-8.14.5.zip and vips-dev-w64-web-8.14.5-static.zip.
Error:
|
Did you see #183 (comment) ? |
Yes. |
I got this error before at v2.3.0, and then these checking steps worked for me. 1. Make sure that libffi is installed ( https://www.php.net/manual/en/ffi.requirements.php) extension=ffi
[ffi]
; FFI API restriction. Possible values:
; "preload" - enabled in CLI scripts and preloaded files (default)
; "false" - always disabled
; "true" - always enabled
ffi.enable=true
; List of headers files to preload, wildcard patterns allowed.
;ffi.preload= This is my Dockerfile, I think It could be for reference. FROM alpine:latest
LABEL Maintainer="Duy Phan <[email protected]>"
# Install system dependencies
RUN apk update && \
apk upgrade && \
apk add --no-cache \
ca-certificates \
musl-dev \
ffmpeg \
nano \
bash \
git \
gcc \
g++ \
make \
zip \
unzip \
curl \
nginx \
vips \
vips-tools \
vips-dev \
glib-dev \
libffi
# Install PHP
RUN apk update && \
apk upgrade && \
apk add --no-cache \
php81 \
php81-fpm
# Install PHP extensions
RUN apk add --no-cache \
php81-phar \
php81-json \
php81-iconv \
php81-openssl \
php81-curl \
php81-intl \
php81-ftp \
php81-xdebug \
php81-mbstring \
php81-soap \
php81-gmp \
php81-pdo_odbc \
php81-dom \
php81-pdo \
php81-zip \
php81-mysqli \
php81-sqlite3 \
php81-pdo_pgsql \
php81-bcmath \
php81-gd \
php81-odbc \
php81-pdo_mysql \
php81-pdo_sqlite \
php81-gettext \
php81-xmlreader \
php81-xmlwriter \
php81-tokenizer \
php81-bz2 \
php81-pdo_dblib \
php81-curl \
php81-ctype \
php81-session \
php81-redis \
php81-exif \
php81-imap \
php81-pspell \
php81-tidy \
php81-xsl \
php81-pear \
php81-gettext \
php81-apcu \
php81-simplexml \
php81-mysqlnd \
php81-xml \
php81-enchant \
php81-bcmath \
php81-sysvsem \
php81-opcache \
php81-posix \
php81-zlib \
php81-fileinfo \
php81-dev \
php81-sodium \
php81-pecl-vips \
php81-ffi
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
# Remove Cache
RUN rm -rf /var/cache/apk/*
RUN rm -rf /tmp/*
# Set up initial script
COPY ./entry.sh /etc/entry.sh
RUN chmod -R 777 /etc/entry.sh
ENTRYPOINT ["sh", "/etc/entry.sh"]
|
If it can't find libvips, then there must be something wrong with your I would add some debugging code to verify that PATH has the expected value at runtime, and that the libvips DLL is present and accessible. |
This comment was marked as resolved.
This comment was marked as resolved.
I've just hit the same issue after moving from our custom Ubuntu Docker image to the official PHP images. I'm using I know it's enabled because prior to adding it I was getting a
Could anyone shed some light on why this is happening? |
Never mind, just saw php-vips doesn't support preloading. Got it working by changing |
I am not quite sure what causes that exception.
The text was updated successfully, but these errors were encountered: