1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    53
    Vote Rating
    2
    manilodisan is on a distinguished road

      0  

    Default sencha: command not found

    sencha: command not found


    I installed the linux version of the SDK tools and when I open a command line window and type sencha it says: sencha: command not found

    I even installed with sudo in front of it to make sure I'm not doing it wrong. Installer works ok, it creates the uninstaller and everything but 'sencha' is not found. Any idea why is that?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,206
    Vote Rating
    856
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Your path didn't get updated?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    53
    Vote Rating
    2
    manilodisan is on a distinguished road

      0  

    Default


    Probably not, how do I check?

  4. #4
    Sencha User bclinton's Avatar
    Join Date
    Nov 2007
    Posts
    274
    Vote Rating
    6
    bclinton will become famous soon enough

      0  

    Default


    I'm not a linux guru, but maybe the problem is that you used sudo to install the tools so it updated the root user's path and not the user you are logged in as when trying to use the tools?

    Try this:
    Code:
    sudo su
    echo $PATH
    and see if the path is set there.

    You probably just need to do this to get things to work (when logged in as your normal user):
    Code:
    export PATH=$PATH:/opt/SenchaSDKTools-1.2.3:/opt/SenchaSDKTools-1.2.3/command:/opt/SenchaSDKTools-1.2.3/appbuilder:/opt/SenchaSDKTools-1.2.3/jsbuilder
    (adjusting that for any differences in your actual path)

  5. #5
    Sencha User
    Join Date
    Nov 2013
    Location
    Los Angeles
    Posts
    26
    Vote Rating
    0
    heisenburger is on a distinguished road

      0  

    Default


    Hmm, I don't have this problem when I am my own user ... but I do when I try to run sencha cmd as root with
    Code:
    sudo sencha
    This is problematic when I try to run the tutorial command
    Code:
    sencha fs web -p 80 start -map /path/to/sencha/folder/
    because I get errors that my jetty server can't start because the permission is denied... I'm sure it's simple to get the command to be recognized by the sudo user (Ubuntu!).