From 530ad45fdc051e0fe8690048992a6d9027cbb09b Mon Sep 17 00:00:00 2001 From: Tristan Rivoallan Date: Wed, 31 Oct 2012 12:53:02 +0100 Subject: [PATCH 1/4] Added a script for compiling PECL extensions --- README.rst | 5 ++++- src/compile-extension.sh | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/compile-extension.sh diff --git a/README.rst b/README.rst index fcae578..f458ccb 100644 --- a/README.rst +++ b/README.rst @@ -64,7 +64,10 @@ PHP versions the default one that gets run when just typing ``php``:: You need to have ``inst/current-bin`` in your ``$PATH`` to make this work. - +Compiling extensions +-------------------- +PECL extensions can be compiled for any installed PHP version using the ``compile-extension.sh`` script :: + $ ./src/compile-extension apc 5.4.3 About phpfarm ------------- diff --git a/src/compile-extension.sh b/src/compile-extension.sh new file mode 100644 index 0000000..02d15cd --- /dev/null +++ b/src/compile-extension.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# @see http://cweiske.de/tagebuch/phpfarm-install-extensions.htm +# @example ./compile-extension.sh xdebug 5.4.3 + +EXTENSION=$1 +PHPVERSION=$2 + +mkdir src/extensions +rm -rf src/extensions/* +pecl download $EXTENSION +tar xvzf $EXTENSION* +cd $EXTENSION* +/opt/phpfarm/inst/bin/phpize-$PHPVERSION +./configure --with-php-config=/opt/phpfarm/inst/bin/php-config-$PHPVERSION +make +make install From cfafb74e74b58b518d60346fb91405662986edb4 Mon Sep 17 00:00:00 2001 From: Tristan Rivoallan Date: Wed, 31 Oct 2012 12:54:19 +0100 Subject: [PATCH 2/4] [doc] fix RST markup --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index f458ccb..84c973c 100644 --- a/README.rst +++ b/README.rst @@ -66,7 +66,7 @@ You need to have ``inst/current-bin`` in your ``$PATH`` to make this work. Compiling extensions -------------------- -PECL extensions can be compiled for any installed PHP version using the ``compile-extension.sh`` script :: +PECL extensions can be compiled for any installed PHP version using the ``compile-extension.sh`` script:: $ ./src/compile-extension apc 5.4.3 About phpfarm From 7f5183f4970e6cd53c1adeee6e6c258c2a69d78e Mon Sep 17 00:00:00 2001 From: Tristan Rivoallan Date: Wed, 31 Oct 2012 12:55:31 +0100 Subject: [PATCH 3/4] Update README.rst --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 84c973c..5a4a5a4 100644 --- a/README.rst +++ b/README.rst @@ -67,6 +67,7 @@ You need to have ``inst/current-bin`` in your ``$PATH`` to make this work. Compiling extensions -------------------- PECL extensions can be compiled for any installed PHP version using the ``compile-extension.sh`` script:: + $ ./src/compile-extension apc 5.4.3 About phpfarm From 9641d9bb5ca5c3eedbd1e8eab5cdf719eb34a131 Mon Sep 17 00:00:00 2001 From: Tristan Rivoallan Date: Wed, 31 Oct 2012 13:24:17 +0100 Subject: [PATCH 4/4] Made script executable --- src/compile-extension.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/compile-extension.sh diff --git a/src/compile-extension.sh b/src/compile-extension.sh old mode 100644 new mode 100755