Reputation: 2980
I've been trying to install Sencha Touch 2 on my mac but without any success.
Initially I -
After this I navigated to the touch-2.1.1 folder in the terminal and typed "sencha" to check if it was working. I got the following error -
[WARN] The current working directory (/Users/administrator/Desktop/tushar/Hybrid-ness/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.
After this I googled around and found that ONLY Sencha Cmd is needed and not Sencha SDK Tools. So I deleted the Sencha SDK Tools from /Applications (I am ashamed of this step)
I navigated to /Users/administrator/bin/Sencha/Cmd/3.1.0.256 and gave the command -
./sencha generate app Myapp ../MyAPp
And i was punished with
After that I've been trying different solutions like one mentioned HERE, but its still not working.
Can anyone help pls.
PS-
I've removed Sencha SDK tools but i'm still getting the folder reference when i do echo $PATH.
/Applications/SenchaSDKTools-2.0.0-beta3:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I did PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin, and checked the $PATH again then sdk tools were removed. I closed the terminal, reopened it and gave echo $PATH...this time again I could see the SDK tools path in the $PATH.
What exactly happened here???
Upvotes: 2
Views: 3663
Reputation: 1
My solution: edit both:
*Very IMPORTANT nano /Users/sencha/.bash_profile nano /Users/sencha/.bashrc
My sencha folder is: /Sencha Default Sencha: /Applications/SenchaSDKTools-2.0.0-Beta/
nano /Users/sencha/.bash_profile
export PATH=/Users/sencha/bin/Sencha/Cmd/4.0.4.84:$PATH
export SENCHA_CMD_3_0_0="/Users/sencha/bin/Sencha/Cmd/4.0.4.84"
export PATH=/Sencha/SenchaSDKTools-2.0.0-beta3:$PATH
#
export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Sencha/SenchaSDKTools-2.0.0-beta3"
export PATH=/Applications/SenchaSDKTools-2.0.0-beta3:$PATH
export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Applications/SenchaSDKTools-2.0.0-beta3"
SENCHA_SDK_TOOLS_2_0_0_BETA3=/Applications/SenchaSDKTools-2.0.0-beta3/
#
export PATH="$PATH:/usr/local/bin"
export PATH=/Users/admin/bin/Sencha/Cmd/4.0.4.84:$PATH
export SENCHA_CMD_4_0_0="/Users/admin/bin/Sencha/Cmd/4.0.4.84"
#
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH
#---------------------------------------------------------------------------------#
nano /Users/sencha/.bashrc
export PATH=/Users/sencha/bin/Sencha/Cmd/4.0.4.84:$PATH
export SENCHA_CMD_3_0_0="/Users/sencha/bin/Sencha/Cmd/4.0.4.84"
export PATH=/Sencha/SenchaSDKTools-2.0.0-beta3:$PATH
#
export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Sencha/SenchaSDKTools-2.0.0-beta3"
export PATH=/Applications/SenchaSDKTools-2.0.0-beta3:$PATH
export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Applications/SenchaSDKTools-2.0.0-beta3"
SENCHA_SDK_TOOLS_2_0_0_BETA3=/Applications/SenchaSDKTools-2.0.0-beta3/
#
export PATH="$PATH:/usr/local/bin"
export PATH=/Users/admin/bin/Sencha/Cmd/4.0.4.84:$PATH
export SENCHA_CMD_4_0_0="/Users/admin/bin/Sencha/Cmd/4.0.4.84"
#
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH'
Upvotes: 0
Reputation: 121
Try this
Upvotes: 1