1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
    wmaa is on a distinguished road

      0  

    Default Unanswered: getting started on mac

    Unanswered: getting started on mac


    I'm trying out Sencha on my Mac but am running into issues. I'm trying to run this under MAMP. Below are my steps:
    ----------
    1. I installed Sencha touch 2.1.1 in the following folder: applications/mamp/htdocs/touch-2.1.1
    2. I installed Sencha SDK to: applications/senchasdktools-2.0.0-beta3
    3. I installed Sencah CMD to: users/me/bin/sencha




    4. Test the install by opening terminal
    MacBook-Air:~ me$ cd /Applications/MAMP/htdocs/touch-2.1.1
    MacBook-Air:touch-2.1.1 me$ sencha
    [WARN] The current working directory (/Applications/MAMP/htdocs/touch-2.1.1) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.
    Sencha Command v2.0.0 Beta 3
    Copyright (c) 2012 Sencha Inc.
    usage: sencha COMMAND [ARGS]
    The available commands are:
    build build a JSB project
    create bootstrapdata generate boostrap data
    create jsb generate a minimal JSB project for an app
    create locale generate a template locale file from source
    create manifest generate classes manifest
    package package your Touch web app into a native bundle
    slice theme slice a custom theme's images for IE
    See 'sencha help COMMAND' for more information on a specific command.


    MacBook-Air:touch-2.1.1 me$ sencha generate app GS ../GS
    [ERROR] The current working directory (/Applications/MAMP/htdocs/touch-2.1.1) is not a valid SDK directory. Please 'cd' into a SDK directory before executing this command.


    MacBook-Air:touch-2.1.1 me$
    ----------

    How do I get this to work?

  2. #2
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    Take a look at this blog post:

    http://senchatouchdev.com/wordpress/...tting-started/

    The problem is with your installation of SDK Tools and Cmd. SDK Tools are not for use with Touch 2.1.1. To start fresh:

    1. Uninstall SDK Tools
    2. Uninstall Cmd
    3. Reinstall Cmd
    4. Follow that blog post

    I hope this helps you,

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  3. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
    wmaa is on a distinguished road

      0  

    Default


    I did:
    1. Uninstall SDK Tools
    2. Uninstall Cmd
    3. Reinstall Cmd
    4. Follow that blog post




    step 3 in blog post - same version of java.


    I launched the terminal and type sencha but got:
    -bash: sencha: command not found


    so I did as suggested here:
    http://keito.me/tutorials/macosx_path


    'export PATH=users/me/bin/sencha:$PATH' >> ~/.me


    then used open to view the path and was shown:
    export PATH=users/me/bin/sencha:$PATH


    I'm guessing that installed it???




    Exited out of Terminal and close the app then reopened and typed:


    MacBook-Air:~ me$ cd /Applications/MAMP/htdocs/touch-2.1.1
    MacBook-Air:touch-2.1.1 me$ sencha


    But got:


    -bash: sencha: command not found

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
    wmaa is on a distinguished road

      0  

    Default


    i've restarted the mac and tried again but no luck; any suggestions?

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Posts
    20
    Vote Rating
    1
    dbarton is on a distinguished road

      0  

    Default


    Hi

    please provide an output of the following command:

    Code:
    export | grep SENCHA_CMD
    Code:
    export | grep PATH
    Cheers
    Domi

  6. #6
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
    wmaa is on a distinguished road

      0  

    Default


    Domi - is that from within the terminal app? I'm not an avid mac user. thank you

  7. #7
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    You'd run those commands in a terminal session. When you install Sencha Cmd, it will set an environment variable to where it's installed on your system (that's what that first command is attempting to determine). The second command will show your PATH environment variable.

    For example, on my machine, the first command yields:

    declare -x SENCHA_CMD_3_0_0="/Applications/Sencha/Cmd/3.0.2.288"

    The directory '/Applications/Sencha/Cmd/3.0.2.288' needs to be present in my PATH for the sencha command to be executed.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  8. #8
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    One other thing you can do is just dump out your profile scripts using the 'cat' command followed by the path to the file you want to inspect.

    I'm not sure what your ~/.me scripts are you referenced earlier. I have my profile script in ~/.bash_profile.

    Sencha Cmd put references to itself in my ~/.bash_profile and ~/.bashrc scripts.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

Thread Participants: 2

Tags for this Thread