|
1 | 1 | # Compiling Interbase/Firebird extension for PHP 5/7 under MAC OS X
|
2 | 2 |
|
3 |
| -Short tutorial on how to compile Firebird extension for PHP under MAC OS X El Capitan 10.11 |
| 3 | +Short tutorial on how to compile Firebird extension for PHP under MAC OS. |
4 | 4 |
|
5 |
| -## Update 2020-03-30 |
| 5 | +## Before compiling PHP extension you must have |
| 6 | +- Autoconf, you can install it via Homebrew (brew install autoconf) |
| 7 | +- Because we needs Firebird libs. for compiling interbase, we have to download Firebird Server Package (http://www.firebirdsql.org/en/downloads), download the LIPO package (important!) |
6 | 8 |
|
7 |
| -The tutorial is still working, keep in mind that this tutorial is for Firebird 2.5.x only! |
| 9 | +## Update 2020-09-08 |
| 10 | + |
| 11 | +Interbase extension is currently not shipped with PHP source code. But below you will find way to achieve it. |
| 12 | + |
| 13 | +## Let's compile! (MAMP 5.7 ... PHP 7.4.2 ) |
| 14 | + |
| 15 | +@MartinKoeditz is working on driver for PHP>=7.1. The repo is here: https://github.com/FirebirdSQL/php-firebird. We cannot download final driver, one needs to compile it, here is how. |
| 16 | + |
| 17 | +<ol> |
| 18 | + <li>git clone https://github.com/FirebirdSQL/php-firebird.git</li> |
| 19 | + <li>cd php-firebard</li> |
| 20 | + <li>/Applications/MAMP/bin/php/php7.4.2/bin/phpize</li> |
| 21 | + <li>CPPFLAGS="-I/usr/local/lib/Firebird.framework/Headers" ./configure</li> |
| 22 | + <li>make</li> |
| 23 | + <li>make install</li> |
| 24 | + <li>Open MAMP pro PHP 7.4.2 config file (.ini extension) and append new line: extension=interbase.so</li> |
| 25 | + <li>Restart MAMP server</li> |
| 26 | +</ol> |
8 | 27 |
|
9 | 28 | <hr>
|
10 | 29 |
|
11 |
| -## Before compiling PHP extension you must have |
12 |
| -- Autoconf, you can install it via Homebrew (brew install autoconf) |
13 |
| -- Because we needs Firebird libs. for compiling interbase, we have to download Firebird Server Package (http://www.firebirdsql.org/en/downloads), download the LIPO package (important!) |
| 30 | +## Update 2020-03-30 |
14 | 31 |
|
| 32 | +The tutorial is still working, keep in mind that this tutorial is for Firebird 2.5.x only! |
15 | 33 |
|
16 | 34 | ## Let's compile! (MAMP 4.1.1 ... PHP 7.1.1)
|
17 | 35 |
|
|
0 commit comments