Payam
Payam

Reputation: 751

Zend framework zf command and Netbeans registration don't work

I am working on MacOSX Lion, and I am trying to install Zend Framework. I did this in the past and it was easy, now it doesn't work. After registration of ZF with Netbeans, which gives an error, the zf show version command generates this error:

Warning: include_once(NetBeansCommandsProvider.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/ZF11/library/Zend/Loader.php on line 146

Warning: include_once(): Failed opening 'NetBeansCommandsProvider.php' for inclusion (include_path='/Applications/MAMP/htdocs/ZF11/library:/Users/payam/php_library/ZendFramework-1.11.8/library:/Applications/NetBeans/NetBeans 7.0.app/Contents/Resources/NetBeans/php/zend:.:/usr/lib/php') in /Applications/MAMP/htdocs/ZF11/library/Zend/Loader.php on line 146

Some people say I have to fix .zf.ini file, but such a file is not created on MacOSX. How can this be fixed?

Upvotes: 1

Views: 1095

Answers (2)

ELavicount
ELavicount

Reputation: 455

I'd experience the same problem too, long time ago.

You have to edit you .zf.ini file in your home directory /Users/myuser and put the right path to the NetBeansCommandsProvider.php this file can be found on /Applications/NetBeans/NetBeans 7.3.1.app/Contents/Resources/NetBeans/php/zend

Here is my .zf.ini file

php.include_path = "/Users/myuser/Programs/ZendFrameworkCli/library:/Applications/NetBeans/NetBeans 7.3.1.app/Contents/Resources/NetBeans/php/zend:.:/usr/lib/php"

basicloader.classes.0 = "NetBeansCommandsProvider"

Regards

Upvotes: 0

RockyFord
RockyFord

Reputation: 8519

check out this Getting codeception & phpunit working on MAMP with OS X Lion it seems that MAMP's php may compete with the OS X previously installed PHP.

Upvotes: 1

Related Questions