-
Notifications
You must be signed in to change notification settings - Fork 364
Variant Dependencies
This page lists the dependencies for each variant, you can select the minimum installation for your system.
Homebrew:
brew install curl
Ubuntu 16.04 and newer:
apt-get install libcurl4-openssl-dev
Ubuntu 14.04:
apt-get install libcurl3-openssl-dev
Ubuntu 16.10 and newer:
apt-get install libjpeg8-dev libpng-dev libfreetype6-dev
Ubuntu 16.04 to 20.10:
apt-get install libjpeg8-dev libpng12-dev libfreetype6-dev
Ubuntu 21.10 and older:
apt-get install libjpeg-dev libpng-dev libfreetype-dev
Ubuntu:
apt-get install libgmp-dev
In order to compile PHP 5 with GMP on Ubuntu 11.10 and newer, you may need to symlink some library files (source):
sudo ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
Homebrew:
brew install libiconv
Homebrew:
brew install imap-uw
brew install krb5
Ubuntu:
apt-get install libc-client2007e libc-client2007e-dev libkrb5-dev
ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu
Ubuntu:
apt-get install libicu-dev
Homebrew:
brew install openldap
Ubuntu:
apt-get install libldap2-dev
In order to compile PHP 5 with LDAP on Ubuntu 11.10 and newer, you may need to symlink some library files (source):
ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
As of PHP 7.4, the Oniguruma library is no longer bundled with PHP (see php/php-src#3795).
Ubuntu:
apt-get install libonig-dev
As of PHP 5.3, PHP ships with bundled mysqlnd
that makes libmysqlclient
not required. If you still want to compile a MySQL-related extension with libmysqlclient
, you'll need to install it.
Ubuntu:
apt-get install libmysqlclient-dev
Note that:
- PHP 5.6 and older require OpenSSL 1.0 and do not support OpenSSL 1.1.
- As of Ubuntu 18.04, OpenSSL 1.1 is shipped.
Homebrew:
brew install openssl
Ubuntu 14.04:
apt-get install libssl-dev
Homebrew:
brew install libpq
Ubuntu 16.04:
apt-get install libpq5 libpq-dev
Ubuntu:
apt-get install libsodium-dev
Ubuntu 16.04:
apt-get install libsqlite3-dev
Homebrew (documentation):
brew install msodbcsql17 mssql-tools
Ubuntu:
See the documentation.
Homebrew:
brew install libxml2
As of PHP 7.3, building against the bundled libzip is discouraged.
Ubuntu 16.10 and newer:
apt-get install libzip5 libzip-dev
Ubuntu 16.04:
apt-get install libzip4 libzip-dev
Homebrew:
brew install zlib