Skip to content

Commit

Permalink
Add Linux dependencies information to README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
aicantar committed Jan 2, 2025
1 parent 52c669a commit 583c9e3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 583c9e3

Please sign in to comment.