views:

24

answers:

0

I'm currently using XAMPP for PHP development on my Mac. I just got handed a project that needs to use the Berkeley DB with db4 support, but I just can't seem to get it working. Can you even setup DB4 with XAMPP?

I successfully installed Berkeley DB and made the db4.so file and have set it the extension=db4.so line in the php.ini file, but when Apache tries to start I get the following errors:

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/php_db.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/php_db.dll, 9): image not found in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/php_dba.dll' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/php_dba.dll, 9): image not found in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/db4.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/db4.so, 9): no suitable image found. Did find:\n\t/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/db4.so: mach-o, but wrong architecture in Unknown on line 0