Merge branch 'fix/installer'

This commit is contained in:
Óscar de Arriba
2016-10-15 15:12:21 +02:00
2 changed files with 29 additions and 5 deletions

View File

@@ -7,12 +7,20 @@
asdf plugin-add php https://github.com/Stratus3D/asdf-php.git
```
### macOS
## Linux
In oprder to compile PHP on macOS machines, you must install some brew packages first:
You may need this libraries and packages to be able to compile PHP compiler versions:
```
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 pkg-config libsslcommon2-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

@@ -86,6 +86,8 @@ os_based_configure_options() {
local jpeg_path=$(homebrew_package_path jpeg)
local libpng_path=$(homebrew_package_path libpng)
local openssl_path=$(homebrew_package_path openssl)
local curl_path=$(homebrew_package_path curl)
local libxml2_path=$(homebrew_package_path libxml2)
local zlib_path=$(homebrew_package_path zlib)
local readline_path=$(homebrew_package_path readline)
@@ -126,7 +128,19 @@ os_based_configure_options() {
if [ "$openssl_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING openssl"
else
configure_options="$configure_options --with-openssl=$openssl_path"
configure_options="$configure_options --with-openssl-dir=$openssl_path"
fi
if [ "$curl_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING curl"
else
configure_options="$configure_options --with-curl=$curl_path"
fi
if [ "$libxml2_path" = "" ]; then
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libxml2"
else
configure_options="$configure_options --with-libxml-dir=$libxml2_path"
fi
if [ "$zlib_path" = "" ]; then
@@ -136,8 +150,10 @@ os_based_configure_options() {
fi
if [ "$readline_path" != "" ]; then
configure_options="$configure_options --with-readline-dir=$readline_path"
configure_options="$configure_options --with-readline=$readline_path"
fi
else
configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext"
fi
echo $configure_options