Here I had an issue while trying to create the mod_rewrite.so (DSO).
After updating to MacOS X 10.8.x apxs is no longer using the correct path to the cc compiler
So a
$ sudo apxs -c -i mod_rewrite.c
give you
env: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc: No such file or directory
You do have a cc it's just in another place so simply symlink to it
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
Then run apxs again.
Tuesday, October 23, 2012
Wednesday, October 10, 2012
How to do continuous deployment
Continuous Deployment (CD) allows companies like Etsy.com to do up to 30 or 40 deployments a day. Here's a slideshare of how they do it and I've picked some interesting slides.
1. Definitions
2. Deploying frequently with config flags
3. How to do Continuous Deployment for database schemas
4. Ramping up the percentage of users
1. Definitions
2. Deploying frequently with config flags
3. How to do Continuous Deployment for database schemas
4. Ramping up the percentage of users
Monday, October 1, 2012
Cannot find autoconf. Please check your autoconf
I just upgraded to Mountain Lion 10.8.1 and found that doing a pecl install apc failed.
The fix for me was:
Step 1: Download, install and make autoconf
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz .
tar -xzf autoconf-2.68.tar.gz
cd autoconf-2.68
./configure --prefix=/usr/local
make
sudo make install --prefix=/usr/local
Step 2: pecl install your apc
sudo pecl install apc
Afterwards you should be able to find the .so file here:
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so
Step 3: Add the extension to your php.ini file
extension=apc.so
Step 4: Restart Apache
The fix for me was:
Step 1: Download, install and make autoconf
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz .
tar -xzf autoconf-2.68.tar.gz
cd autoconf-2.68
./configure --prefix=/usr/local
make
sudo make install --prefix=/usr/local
Step 2: pecl install your apc
sudo pecl install apc
Afterwards you should be able to find the .so file here:
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so
Step 3: Add the extension to your php.ini file
extension=apc.so
Step 4: Restart Apache
Subscribe to:
Posts (Atom)