Add openssl.

This commit is contained in:
Óscar de Arriba
2016-10-15 14:33:55 +02:00
parent 1db7ad2c34
commit 0a1ee39b74
2 changed files with 11 additions and 5 deletions

View File

@@ -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:

View File

@@ -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"