+ Reply to Thread
Results 1 to 6 of 6

Thread: Problems with Zend framework's zend_tool in Ubnutu in xampp

  1. #1
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Problems with Zend framework's zend_tool in Ubnutu in xampp

    I have installed xampp in Ubuntu 10.04.I want to use zend framework for development of my website.
    For this I downloaded zend framework minimal from http://framework.zend.com
    I have included library folder in php.ini.But when I ran following commands for using zend_tool i received errors.
    Code:
    sudo  /opt/lampp/zend/bin/zf.sh
    Error message said "php not found"
    So I installed php5-cli
    And again type
    Code:
    sudo  /opt/lampp/zend/bin/zf.sh
    Then I recieved this error message
    ***************************** ZF ERROR ********************************
    In order to run the zf command, you need to ensure that Zend Framework
    is inside your include_path. There are a variety of ways that you can
    ensure that this zf command line tool knows where the Zend Framework
    library is on your system, but not all of them can be described here.

    The easiest way to get the zf command running is to allow is to give it
    the include path via an environment variable ZEND_TOOL_INCLUDE_PATH or
    ZEND_TOOL_INCLUDE_PATH_PREPEND with the proper include path to use,
    then run the command "zf --setup". This command is designed to create
    a storage location for your user, as well as create the zf.ini file
    that the zf command will consult in order to run properly on your
    system.

    Example you would run:

    $ ZEND_TOOL_INCLUDE_PATH=/path/to/library zf --setup

    Your are encourged to read more in the link that follows.
    Zend_Tool & CLI Setup Information
    (available via the command line "zf --info")
    * Home directory found in environment variable HOME with value /home/ubuntu
    * Storage directory assumed in home directory at location /home/ubuntu/.zf/
    * Storage directory does not exist at /home/ubuntu/.zf/
    * Config file assumed in home directory at location /home/ubuntu/.zf.ini
    * Config file does not exist at /home/ubuntu/.zf.ini

    To change the setup of this tool, run: "zf --setup"

    If anybody is doing this in linux please tell me how can I run this tool in ubuntu, please help, manually creating directories and files is a pain, if a tool can do it in a second for you.
    Last edited by bhupendra2895; 07-10-2010 at 09:27 AM.
    Liked this? Click on the icon on the bottom of post to make me .

  2. #2
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: Problems with Zend framework's zend_tool in Ubnutu in xampp

    I don't know why this happens, whenever I ask for some help from forum, nobody tells me any solution till I myself figure out the solution.Yes today, I solved it.
    I am writing here how I did it.
    1 I used this command to add php binary into environment.This needs to be done because in Xampp PHP is installed as apache module and there is no way from which OS can know this thing is there.
    Code:
    export PATH=$PATH:/opt/lampp/bin
    2 Then this to check everything is working fine.
    Code:
    php -v
    It displayed
    PHP 5.3.1 (cli) (built: Nov 22 2009 21:39:37)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    3 I copied zf.sh and zf.php from bin folder from zend package archive in /opt/lampp/bin
    4Now i ran this command
    Code:
    zf.sh show version
    It displayed
    Zend Framework Version: 1.10.6
    Finally it worked
    I created my project using this command
    Code:
    zf.sh create project /opt/lampp/testproject
    Quote Originally Posted by bhupendra2895 View Post
    So I installed php5-cli
    And yes there is no need to install php-cli package.
    Liked this? Click on the icon on the bottom of post to make me .

  3. #3
    meskarune's Avatar
    meskarune is offline x10Hosting Member meskarune is an unknown quantity at this point
    Join Date
    May 2010
    Location
    USA
    Posts
    18

    Re: Problems with Zend framework's zend_tool in Ubnutu in xampp

    You could have also just added the zend-framework ppa...

    Code:
     sudo add-apt-repository  ppa:zend-framework/ppa
      sudo apt-get update
      sudo apt-get install  zend-framework
    https://launchpad.net/~zend-framework/+archive/ppa

  4. #4
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: Problems with Zend framework's zend_tool in Ubnutu in xampp

    Quote Originally Posted by meskarune View Post
    You could have also just added the zend-framework ppa...

    Code:
     sudo add-apt-repository  ppa:zend-framework/ppa
      sudo apt-get update
      sudo apt-get install  zend-framework
    https://launchpad.net/~zend-framework/+archive/ppa
    Yeah I could do that but I guess for that I have to install apache, mysql and php.That's what I didn't wanted because I am going through some hardware failures.My hard disk is under process of warranty replacement.So I am booting through live CD and have installed xampp on my USB flash drive, which provides me apache+php+mysql and I don't need to install zend framework everytime.So each time my live cd starts i run th following commands

    Code:
    sudo ln -s /media/Neuron/Project\ Site/opt/lampp /opt/
    sudo /opt/lampp/lampp start
    export PATH=$PATH:/opt/lampp/bin
    
    #To run Zf tool
    /opt/lampp/includes/Zend/library/zf.sh show version
    Liked this? Click on the icon on the bottom of post to make me .

  5. #5
    meskarune's Avatar
    meskarune is offline x10Hosting Member meskarune is an unknown quantity at this point
    Join Date
    May 2010
    Location
    USA
    Posts
    18

    Re: Problems with Zend framework's zend_tool in Ubnutu in xampp

    Ouch. That sucks! I hope they get your hard drive replaced soon! Is it a laptop? I had a 7 year old gateway whose hard drive failed, and couldn't find a cheap replacement for it. (I'm using the thing as a cheap server now, also with a live cd and usb drive, lol) My desktop computer has multiple hard drives raided together, so I don't have to worry about failure.

  6. #6
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: Problems with Zend framework's zend_tool in Ubnutu in xampp

    Quote Originally Posted by meskarune View Post
    Ouch. That sucks! I hope they get your hard drive replaced soon! Is it a laptop? I had a 7 year old gateway whose hard drive failed, and couldn't find a cheap replacement for it. (I'm using the thing as a cheap server now, also with a live cd and usb drive, lol) My desktop computer has multiple hard drives raided together, so I don't have to worry about failure.
    It is a assembled desktop computer, which is 3 years old and each of its component except cabinet and processer has exploited warranty service repairs or replacements.

    You are lucky you have multiple drives but I had only single hard disk and with it all my projects died and at the same time when i was enjoying holidays at home, my site at a free web host deleted because they were bothered about their T&C.So let's hope my sandisk flash drive will be healthy in near future.

    Yes I was unlucky at that time and still posting in this thread using my live CD and USB flash drive.

    Liked this? Click on the icon on the bottom of post to make me .

+ Reply to Thread

Similar Threads

  1. Using Xampp
    By Wizet in forum Scripts & 3rd Party Apps
    Replies: 22
    Last Post: 01-07-2009, 03:24 AM
  2. xampp
    By Wizet in forum Computers & Technology
    Replies: 6
    Last Post: 09-10-2008, 06:54 AM
  3. PHP-GTK On XAMPP
    By Shadow121 in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 04-14-2008, 02:46 PM
  4. Xampp and hosts..etc...Help please
    By 1337scape in forum Free Hosting
    Replies: 9
    Last Post: 11-11-2007, 08:10 PM
  5. XAMPP on IE6
    By jensen in forum Computers & Technology
    Replies: 0
    Last Post: 08-11-2006, 12:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers