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.
No comments:
Post a Comment