Connecting Tech Pros Worldwide Help | Site Map

Ubuntu Zend Framework problem

gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#1: Aug 15 '09
Hi All,
I have my Ubuntu system installed with LAMP, Zend Optimizer and I installed the Zend Framework too...

But when I run command

root@sys1# zf show version

then it returns an error like

44: PHP: not found

I'm not getting what exactly the error is... zf.sh is in usr/bin/ directory.

Please help me...
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,566
#2: Aug 21 '09

re: Ubuntu Zend Framework problem


Quote:

Originally Posted by gopan View Post

Hi All,
I have my Ubuntu system installed with LAMP, Zend Optimizer and I installed the Zend Framework too...

But when I run command

root@sys1# zf show version

then it returns an error like

44: PHP: not found

I'm not getting what exactly the error is... zf.sh is in usr/bin/ directory.

Please help me...

It looks to me, and I am just guessing from what little information was provided, that PHP is not on your system.

Regards,

Jeff
gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#3: Aug 21 '09

re: Ubuntu Zend Framework problem


But I am able to run my PHP codes... it is fine and working... may be the zf shell script is not mapping my PHP. Do you know how to let ZF.sh to find PHP ??
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#4: Aug 25 '09

re: Ubuntu Zend Framework problem


Quote:

Originally Posted by gopan View Post

But I am able to run my PHP codes... it is fine and working... may be the zf shell script is not mapping my PHP. Do you know how to let ZF.sh to find PHP ??

Do you have the PHP CLI package? On the terminal type php -v and post the output here.

Mark.
gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#5: Aug 25 '09

re: Ubuntu Zend Framework problem


Had no CLI package... now installed...

and getting the following error while trying
Expand|Select|Wrap|Line Numbers
  1. root@admin:~# zf show version
  2.  
  3. ***************************** ZF ERROR ********************************
  4. In order to run the zf command, you need to ensure that Zend Framework
  5. is inside your include_path.  If you are running this tool without 
  6. ZendFramework in your include_path, you can alternatively set one of 
  7. two environment variables to for this tool to work:
  8.  
  9. a) ZEND_TOOL_INCLUDE_PATH_PREPEND="/path/to/ZendFramework/library"
  10.  
  11. OR alternatively
  12.  
  13. b) ZEND_TOOL_INCLUDE_PATH="/path/to/ZendFramework/library"
  14.  
  15. The former (a) will make the specified Zend Framework first in the
  16. include_path whereas the latter (b) will replace the include_path
  17. with the specified path.
  18.  
  19. Information:
  20.     attempted include_path: .:/usr/share/php:/usr/share/pear
  21.     script location: /usr/bin/zf.php
  22.  
  23. root@admin:~#
  24.  
my zend framework library is in :
Expand|Select|Wrap|Line Numbers
  1. /usr/share/php/libzend-framework-php/Zend
  2.  
how to set this environment variables...
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#6: Aug 25 '09

re: Ubuntu Zend Framework problem


Read this article on the subject.
Reply