From 583c9e3c19072793d9a39e8536c0b2986917cef9 Mon Sep 17 00:00:00 2001 From: Phil Chekhov Date: Thu, 2 Jan 2025 14:15:04 +0600 Subject: [PATCH] Add Linux dependencies information to `README.md`. --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index e043afd..a1daf1f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,37 @@ brew install gmp libsodium imagemagick Note that the supported extension are not exhaustive, so you may need edit the `bin/install` script to support additional extension. Feel free to submit a PR for any missing extensions. +#### Linux + +To install PHP on Linux, you'll need to install build dependencies with development headers: + +* autoconf +* re2c +* libxml2 +* sqlite +* libcurl +* gd +* oniguruma +* libpq +* readline +* libzip + +##### Fedora + +Run this command to install required packages: + +```sh +sudo dnf install autoconf re2c libxml2 libxml2-devel sqlite sqlite-devel libcurl libcurl-devel gd gd-devel oniguruma oniguruma-devel libpq libpq-devel readline readline-devel libzip libzip-devel +``` + +##### Debian + +Run this command to install required packages: + +```sh +sudo apt install autoconf pkg-config gcc bison re2c libxml2-dev libssl-dev sqlite3 libsqlite3-dev zlib1g-dev libcurl4-openssl-dev libgd-dev build-essential libonig-dev libpq-dev libreadline-dev libzip-dev +``` + #### PHP-PEAR If PHP PEAR is down you can install PHP without PEAR. Specify `PHP_WITHOUT_PEAR` variable with any value