Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

When I'm trying to use pecl to install apd it compiles the extension for a 64 bit system. Since MAMP needs extensions in i386 mode, apache won't load this apd.so file.

So how can I force pecl to compile the extension in i386 mode?

Thanks for any help!

share|improve this question

1 Answer 1

Let you try the blow commands.

% pecl download apd-or-whatever
% tar zxvf ***
% cd the-directory
% /Applications/MAMP/bin/php5/bin/phpize
% ./configure CFLAGS="-arch i386" --with-php-config="/Applications/MAMP/bin/php5/bin/php-config"
% make
% make install

I'm using MAMP1.8.4 with manually compiled PHP5.3.2. In MAMP1.9.x, the paths of phpize and php-config are different.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.