Search code examples
phpmampfirebirdinterbase

Issues installing interbase/firebird PHP extension on MAMP


I'm currently having issues trying to install interbase support (interbase PHP extension) on my Mac MAMP PRO installation (with PHP 5.5 selected).

Here are the steps I did and didn't enable it:

cd Applications/MAMP/bin/php/php5.5.26/include/php/ext/interbase

phpize

./configure --with-php-config=/Applications/MAMP/bin/php/php5.5.26/bin/php-config

make

make install

It tells me that the library has been successfully installed:

Libraries have been installed in:
/Applications/MAMP/bin/php/php5.5.26/include/php/ext/interbase/modules

And it also tells me that the MAMP extensions has been updated:

Installing shared extensions:    
/Applications/MAMP/bin/php/php5.5.26/lib/php/extensions/no-debug-non-zts-20121212/

After all these steps and restarting Apache, I can find the interbase.so file inside this folder, but I don't see the extension enabled in phpinfo() or get_loaded_extensions().

Can someone give me some help with this issue ?

I'm having this LOG error message:

PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'interbase.so' in Unknown on line 0

Thanks a lot, it's really appreciated!

Edit: I did have put an extension=interbase.so in my php.ini MAMP template.


Solution

  • I just followed every steps within this post: https://stackoverflow.com/a/24690411/3032516 and I recompiled php with the --with-php-config flag and it solved my issue.

    Also, this link was very helpful to me: https://jellystyle.com/2012/12/installing-php-extensions-with-mamp