Ubuntu Zend Framework problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gopan
    New Member
    • Apr 2009
    • 41

    Ubuntu Zend Framework problem

    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
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by gopan
    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

    Comment

    • gopan
      New Member
      • Apr 2009
      • 41

      #3
      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 ??

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by gopan
        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.

        Comment

        • gopan
          New Member
          • Apr 2009
          • 41

          #5
          Had no CLI package... now installed...

          and getting the following error while trying
          Code:
          root@admin:~# zf show version
              
          ***************************** ZF ERROR ********************************
          In order to run the zf command, you need to ensure that Zend Framework
          is inside your include_path.  If you are running this tool without 
          ZendFramework in your include_path, you can alternatively set one of 
          two environment variables to for this tool to work:
          
          a) ZEND_TOOL_INCLUDE_PATH_PREPEND="/path/to/ZendFramework/library"
          
          OR alternatively
          
          b) ZEND_TOOL_INCLUDE_PATH="/path/to/ZendFramework/library"
          
          The former (a) will make the specified Zend Framework first in the
          include_path whereas the latter (b) will replace the include_path
          with the specified path.
          
          Information:
              attempted include_path: .:/usr/share/php:/usr/share/pear
              script location: /usr/bin/zf.php
          
          root@admin:~#
          my zend framework library is in :
          Code:
          /usr/share/php/libzend-framework-php/Zend
          how to set this environment variables...

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Read this article on the subject.

            Comment

            Working...