我对Arch Linux的x64的安装煎茶触摸2 64。 从SDK目录,我跑./sencha
[jiewmeng@JM SenchaSDKTools-2.0.0-beta3]$ ./sencha
[WARN] The current working directory (/opt/SenchaSDKTools-2.0.0-beta3) 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.
我固定的通过将文件.senchasdk
只用“” 初始化(因为我figued谷歌-ING),但现在我得到
[jiewmeng@JM SenchaSDKTools-2.0.0-beta3]$ ./sencha
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/opt/SenchaSDKTools-2.0.0-beta3/command/sencha.js'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
怎么了?
我解决这个问题,只需添加SDK路径作为系统变量,以及运行煎茶库文件夹,而不是SDK文件夹中的命令。
我得到了同样的警告为:
[jiewmeng@JM SenchaSDKTools-2.0.0-beta3]$ ./sencha
[WARN] The current working directory (/opt/SenchaSDKTools-2.0.0-beta3) 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....
然后我下载的煎茶-触摸2.0.1.1-GPL和提取出的内容至我的网页根(即, /var/www/sencha-touch-2.0.1.1
),最后下载的SenchaSDKTools和经由终端作为安装了它根用户如下:
root@user:/your/directory/where yo downloaded the sdk tool# ./SenchaSDKTool-2.0.1-beta3.run
然后,我等待安装程序解压缩文件,并选择安装目录一样,我把煎茶 - 触摸库和我们有以下几点:
root@user:/var/www/sencha-touch-2.0.1.1# ./sencha
Sencha Command v2.0.2
Copyright (c) 2012 Sencha Inc.
..那是让人高兴的编码在煎茶:-)
@todotresde能否请您分享一个完整的食谱如何在Mac OS X上配置此
我刚刚下载并在/ Applications文件夹中安装煎茶SDK,但我不想填充作为指示在SenchaDocs煎茶的应用程序文件夹http://docs.sencha.com/touch/2-0/# !/引导/命令
CD /路径/到/煎茶触摸-2- SDK
煎茶
该SDK安装添加SDK路径变量到〜/ .bash_profile
出口PATH = /应用/ SenchaSDKTools-2.0.0-β3:$ PATH
出口SENCHA_SDK_TOOLS_2_0_0_BETA3 = “/应用/ SenchaSDKTools-2.0.0-β3”
我在这里看到了一些很好的指针:
http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/
按照标准煎茶应用架构,下载SDK,然后将(或符号连接),它的lib目录下,命名为触摸内。 我们将会把我们自己的代码应用程序目录
重要提示:当您正在开发或试验,它的罚款,以简单地将整个SDK这样的lib文件夹内。 但是,当部署,确保只有所需的JavaScript和CSS文件保留该文件夹中,并删除SDK的其余部分。 你不想来编译和您的应用程序分发整个煎茶触摸SDK。
首先,你添加SenchaSDK文件夹您的位置,
export PATH=$PATH:/your/path/to/SenchaSDK
然后设置SENCHA_SDK_TOOLS_2_0_0_BETA3环境变量,
export SENCHA_SDK_TOOLS_2_0_0_BETA3=/your/path/to/SenchaSDK
现在你去你的煎茶库目录,如/your/path/to/sencha-touch-2.0.1.1,你应该能够毫无问题运行煎茶命令。