We don’t need to recompile PHP, since all we’re going to do is add the extension file to the existing PHP install, configure the php.ini file and restart the server to enable the Zip extension. Next, download the PHP source code, which also contains the source for the extensions. You may only need the UNIX Dev Support tools, but the bulk of the install is the 1.76 GB Essentials component, so it doesn’t hurt to include the rest of the components, except that I’ve skipped the Mac OS X 10.4 Support. Install Xcode Toolsįirst, install Xcode 3.2 from the OS X DVD, or visit the Apple Developer Center to download the latest Xcode Tools:ĭouble-click on the Xcode.mpkg installer to install the Essentials, System Tools and UNIX Dev Support components of the Xcode tools. If you’d rather skip the compile process, try downloading one of the zip.so files mentioned at the end of this post. The following process also requires the latest Xcode Tools from Apple in order to compile the Zip extension from the PHP source code. You will need to be familiar with command line tools in Mac OS X. Adding PHP Extensions under Mac OS X 10.6Īdding the Zip Extension to PHP for Mac OS X 10.6 Snow Leopard.Here are the resources that helped me in my quest: Not wanting to now switch to MAMP, I was determined to find a way to get the ZIP extension installed for the default PHP install in Snow Leopard. I’ve always done my development with the default Mac OS X installs of Apache, and I have a similar set up on my iMac G3, Mac G5, the Intel iMac at work and now my new MacBook Pro. Not so great, if you want to be able to create Symphony Ensembles. Great! However, the Zip extension is not included. Snow Leopard ships with PHP 5.3, which means that the XSL extension is included by default. Since it was running Mac OS X 10.6 Snow Leopard, I needed to make some changes to my local development environment to get my several Symphony installs up and running again. I was disappointed with the fact that I was no longer able to export ensembles when I upgraded to some new Apple hardware.
0 Comments
Leave a Reply. |