Making Zend_Tool Work On Mac OSX
Nov 18, 2009 Posted in PHP, Programming

I'm starting a new project where it look like I have to use the Zend Framework. There appears to be a tool included that autogenerates the MVC application structure for you. To use it though you have to mess around in the command line on your Mac to set things up. I enventually got everything working.
First you need to copy the ZendFramework somewhere.  I copied mine to  /usr/local/ZendFrameworkCli

Next you need to link the Zend Tool scripts to your system bin folder so you can run them from the command line:

ln /usr/local/ZendFrameworkCli/bin/zf.sh /usr/local/bin/zf
ln /usr/localZendFrameworkCli/bin/zf.php /usr/local/bin/zf.php

When I ran "zf show version" it complained that the Zend Framework was not in my include path. I tried various suggestion I found on the interweb, but most were bogus. All you really need to do is:

Type: vi ~/.profile
Add a line to the file:  export PATH="$PATH:/usr/local/ZendFrameworkCli/library"


Now "zf show version" actually works. All I have to do is figure out what to do with it...

References (with info that actually worked):
  • http://raphaelstolt.blogspot.com/2009/01/installing-zendtool-on-mac-os-x.html
  • http://www.peachpit.com/articles/article.aspx?p=31442&seqNum=4
blog comments powered by Disqus

Categories