[php-src] Issue #13837: Compiling from source, no extensions found
| From: | remco-pc | Date: | Fri, 29 Mar 2024 21:58:16 +0000 |
| Subject: | [php-src] Issue #13837: Compiling from source, no extensions found | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246679@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13837
Author: remco-pc
### Description
i am trying to compile from source in a docker container without success. it will generate the
opcache.so file but not the others i am doing this:
```docker
RUN apt-get update && apt-get install git build-essential pkg-config libxml2-dev \
libonig-dev libreadline-dev libssl-dev libsqlite3-dev libcurl4-openssl-dev \
libjpeg-dev libpng-dev libzip-dev libfreetype6-dev libmcrypt-dev apache2 \
libapache2-mod-fcgid autoconf libsodium-dev -y
RUN mkdir "/root/tmp/php" -p
RUN mkdir "/root/php" -p
COPY ./Docker/Packages/php/php-8.3.4.tar.gz /root/tmp/php/php-8.3.4.tar.gz
RUN tar -xvzf /root/tmp/php/php-8.3.4.tar.gz -C /root/tmp/php
COPY . /Application
RUN cd /root/tmp/php/php-8.3.4 && \
./buildconf --force && \
./configure --prefix=/root/php \
--with-mysqli --with-pdo-mysql --with-curl --with-openssl --with-zlib \
--with-jpeg --with-freetype --with-fpm-user=www-data --with-fpm-group=www-data \
--enable-intl --with-pear --with-zip --with-readline --enable-opcache --with-sqlite3 \
--with-libzip=/usr/lib/x86_64-linux-gnu --with-sodium \
--enable-shmop --enable-pcntl --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-sysvmsg \
--enable-mbstring --enable-mbregex --enable-bcmath --enable-calendar --enable-exif
--enable-fpm && \
make -j$(nproc) && make install
COPY ./Docker/Packages/php/config/8.3/php.ini /usr/local/lib/php.ini
COPY ./Docker/Packages/php/config/8.3/php-fpm.conf /usr/local/etc/php-fpm.conf
COPY ./Docker/Packages/php/config/8.3/pool.d/www.conf /etc/php/8.3/fpm/pool.d/www.conf
```
When run make & make install manually it does not help, only the opcache.so is available.
What am i doing wrong, i am using this file https://www.php.net/distributions/php-8.3.4.tar.gz
### PHP Version
php 8.3.4
### Operating System
Debian 12