-
I have successfully compiled frankenphp using the instructions from the docs but I'm getting a # install dependencies
sudo dnf install -y sqlite-devel sqlite-tcl brotli-devel gcc libxml2-devel openssl-devel libcurl-devel oniguruma-devel htop golang
# download php src
curl -L https://www.php.net/distributions/php-8.3.9.tar.gz | tar xz
# compile php
./configure \
--enable-embed \
--enable-zts \
--disable-zend-signals \
--enable-zend-max-execution-timers \
--with-mysqli \
--with-pdo-mysql \
--enable-ctype \
--with-curl \
--enable-dom \
--enable-fileinfo \
--enable-filter \
--enable-mbstring \
--with-openssl \
--enable-pdo \
--enable-session \
--enable-tokenizer \
--enable-xml
make -j$(nproc)
sudo make install
# compile frankenphp
curl -L https://github.com/dunglas/frankenphp/archive/refs/heads/main.tar.gz | tar xz
cd frankenphp-main/caddy/frankenphp
CGO_CFLAGS=$(php-config --includes) CGO_LDFLAGS="$(php-config --ldflags) $(php-config --libs)" go build |
Beta Was this translation helpful? Give feedback.
Answered by
fishdaa
Jul 21, 2024
Replies: 2 comments
-
tried to build without the additional extensions and php 8.3.7, still the same error. |
Beta Was this translation helpful? Give feedback.
0 replies
-
found it.
then set
with /home/ec2-user/php-8.3.7/libs as the path where the libphp.so is found |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fishdaa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found it.
search for the file
then set
with /home/ec2-user/php-8.3.7/libs as the path where the libphp.so is found