mirror of
https://github.com/jlengrand/asdf-php.git
synced 2026-03-10 08:01:22 +00:00
Add openssl.
This commit is contained in:
14
README.md
14
README.md
@@ -7,12 +7,18 @@
|
||||
asdf plugin-add php https://github.com/Stratus3D/asdf-php.git
|
||||
```
|
||||
|
||||
### macOS
|
||||
|
||||
In oprder to compile PHP on macOS machines, you must install some brew packages first:
|
||||
## Linux
|
||||
|
||||
```
|
||||
brew install freetype bison27 gettext icu4c jpeg libpng openssl readline homebrew/dupes/zlib
|
||||
sudo apt-get install curl build-essential autoconf libjpeg-dev libpng12-dev openssl libssl-dev libcurl4-openssl-dev libreadline-dev libedit-dev zlib1g-dev libicu-dev libxml2-dev gettext bison libmysqlclient-dev libpq-dev
|
||||
```
|
||||
|
||||
### macOS
|
||||
|
||||
In order to compile PHP on macOS machines, you must install some brew packages first:
|
||||
|
||||
```
|
||||
brew install freetype bison27 gettext icu4c jpeg libpng openssl readline homebrew/dupes/zlib curl
|
||||
```
|
||||
|
||||
and, in order to compile 5.x versions of PHP, you **must** link `bison27` package:
|
||||
|
||||
@@ -41,7 +41,7 @@ install_php() {
|
||||
construct_configure_options() {
|
||||
local install_path=$1
|
||||
|
||||
global_config="--prefix=$install_path --sysconfdir=$install_path --with-config-file-path=$install_path --with-config-file-scan-dir=$install_path/conf.d --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-intl --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-gd --with-libedit --with-mhash --with-xmlrpc --without-gmp --without-snmp --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mysqlnd"
|
||||
global_config="--prefix=$install_path --sysconfdir=$install_path --with-config-file-path=$install_path --with-config-file-scan-dir=$install_path/conf.d --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-intl --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-gd --with-libedit –with-openssl --with-curl --with-mhash --with-xmlrpc --without-gmp --without-snmp --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mysqlnd"
|
||||
|
||||
if [ "$PHP_CONFIGURE_OPTIONS" = "" ]; then
|
||||
local configure_options="$(os_based_configure_options) $global_config"
|
||||
|
||||
Reference in New Issue
Block a user