Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant load extension on mac OSX 10.7.5 #81

Open
simonbaudry opened this issue Nov 20, 2013 · 0 comments
Open

Cant load extension on mac OSX 10.7.5 #81

simonbaudry opened this issue Nov 20, 2013 · 0 comments

Comments

@simonbaudry
Copy link

I'have tried to install aop extension on mac OSX 10.7.5 using PECL and following instructions given here http://aop-php.github.io/ :

#Clone the repository on your computer
git clone https://github.com/AOP-PHP/AOP
cd AOP
#prepare the package, you will need to have development tools for php
phpize
#compile the package
./configure
make
#before the installation, check that it works properly
make test
#install
make install

Everything goes right except that the extension loading failed on Apache server starting.

I found the following solution to my issue (http://artur.ejsmont.org/blog/content/how-to-compile-php-52-extensions-on-mac-106-snow-leopard-with-mamp) :

#Clone the repository on your computer
git clone https://github.com/AOP-PHP/AOP
cd AOP
#Setup compilation variables
MACOSX_DEPLOYMENT_TARGET=10.7
CFLAGS="-arch i386 -g -Os -pipe -no-cpp-precomp"
CCFLAGS="-arch i386 -g -Os -pipe"
CXXFLAGS="-arch i386 -g -Os -pipe"
LDFLAGS="-arch i386 -bind_at_load"
export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET
#prepare the package
phpize --with-php-config=/usr/local/zend/bin/php-config
#compile the package
./configure --with-php-config=/usr/local/zend/bin/php-config
make
#before the installation, check that it works properly
make test
#install
make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant