From 0a1ee39b74ab557e404844d05f699387503699b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Sat, 15 Oct 2016 14:33:55 +0200 Subject: [PATCH] Add openssl. --- README.md | 14 ++++++++++---- bin/install | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b675536..9b52f33 100644 --- a/README.md +++ b/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: diff --git a/bin/install b/bin/install index 5360e19..6ff8a75 100644 --- a/bin/install +++ b/bin/install @@ -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"