PDA

View Full Version : Installing Sencha SDK Tools on Linux (Ubuntu)



ssamuel68
6 Mar 2012, 11:29 AM
Hi, im traying to install the Sencha SDK Tools but i cant find the installer.

Im on http://www.sencha.com/products/sdk-tools/download/ but it only says to download the Mac or the Windows version.

What im missing here.

32435

Thx

mitchellsimoens
6 Mar 2012, 11:37 AM
SDK Tools 2 isn't available for Linux quite yet.

bodicharla
7 Mar 2012, 2:39 AM
Hi....new to sencha....what are the advantages of using and installing sencha sdk tools....????

please share here....!!!!

nulldev
7 Mar 2012, 6:07 AM
Then should remove "Linux" from this page for prevent from make user confuse.

32462

jlindbergh
7 Mar 2012, 7:14 AM
+1

And it would be nice to have a link to the latest working release of the SDK tools for Linux somewhere!

divad
8 Mar 2012, 3:22 AM
When will it be available?

ssamuel68
8 Mar 2012, 11:43 AM
Its possible to get old versions of Windows and Linux?

dave_e
19 Mar 2012, 8:55 AM
Is it possible for you to re-host or link to the old version of the linux installer, or was there a problem with it?

andypasztirak
4 Apr 2012, 2:39 PM
I would also appreciate some sort of official response on this!

nord_ua
7 Apr 2012, 9:11 AM
I lost abount 30 minutes trying find out why download not started. Please, correct that page or release Linux version at last!

mitchellsimoens
7 Apr 2012, 10:10 AM
I lost abount 30 minutes trying find out why download not started. Please, correct that [snip] page or release Linux version at last!

Please remain professional. I have snipped foul language.

nord_ua
9 Apr 2012, 3:03 AM
Pardon, my dear collegue. I begging you to forgive me for my strong language and give us all answer: when Linux SDK will be accessable?
Thank you so much, looking forward to see your next post.

best regards, Sergey.
PS. To avoid extra post in future you can edit download page.

mitchellsimoens
9 Apr 2012, 3:39 AM
This only works with Sencha Touch 2 currently

http://www.sencha.com/forum/showthread.php?192169-Important-SDK-Tools-Sencha-Command-Update

ssamuel68
9 May 2012, 10:24 AM
Hi, well i install the new beta version of Sencha SDK Tools :)

But i cant execute sencha command. What im doing wrong?

root@sam-PC:/opt/SenchaSDKTools-2.0.0-beta3# sencha
\sencha: command not found

This is what i have on my directory:


root@sam-PC:/opt/SenchaSDKTools-2.0.0-beta3# \ls
bin LICENSE.JSDB uninstall
compat sencha uninstall.dat
LICENSE sencha.bat Uninstall Sencha SDK Tools 2.0.0-beta3.desktop
LICENSE.GIFLIB sencha.js

Thx

ssamuel68
9 May 2012, 10:28 AM
My mistake, I think....

i have to run it with ./ at the beginning

For example:
root@sam-PC:/opt/SenchaSDKTools-2.0.0-beta3# ./sencha

:) I hope this works for everyone.

ssamuel68
9 May 2012, 11:12 AM
How can I use the sencha command from anywhe?

I only can run it on the sencha folder and with ./sencha.

Thx

mitchellsimoens
9 May 2012, 1:47 PM
How can I use the sencha command from anywhe?

I only can run it on the sencha folder and with ./sencha.

Thx

sencha command is only available if you are within the sencha touch directory or your app that was created with sencha command.

diazruy
9 May 2012, 7:16 PM
Hi,

I see some comments in the thread indicating that the installer is not yet available for Linux, yet I also see some messages indicating successful installation.

I have downloaded both 32 and 64 bit versions of the installer from:
http://www.sencha.com/products/sdk-tools/download/sencha-sdk-tools-2.0.0-beta-3/linux_32
http://www.sencha.com/products/sdk-tools/download/sencha-sdk-tools-2.0.0-beta-3/linux_64

After unzipping the SenchaSDKTools-2.0.0-beta3-linux.run and SenchaSDKTools-2.0.0-beta3-linux-x64.run files, and making them executable with chmod, when I try to run the command I get either


zsh: permission denied: ./SenchaSDKTools-2.0.0-beta3-linux-x64.run

Or when I run it with sudo, then nothing happens. I just go back to the prompt and sencha is still not available. Am I doing something wrong or is the installer still not available for Linux?

Thanks
Ruy

diazruy
9 May 2012, 7:38 PM
UPDATE:

I just downloaded files again (I actually realized it's not a ZIP, it's the *.run file directly). This time around, however, I copied the file into the directory into the directory in which I unzipped the SDK files (sencha-touch-2.0.1) and I noticed that I did not need to chmod the files (they were already -rwxrwxr-x).

Unfortunately, the installer still did not work. After running both the 32 and the 64 bit versions, the Sencha logo appears briefly in the middle of the screen and then an empty black dialog box appears
35051

and the sencha command is still unavailable.

diazruy
9 May 2012, 7:57 PM
UPDATE 2


Running ./SenchaSDKTools-2.0.0-beta3-linux-x64.run as sudo launched the installer successfully. HOWEVER, the background of the dialog boxes is black, so it's impossible to see the buttons or the text on them. I tried launching it with `--mode gtk` but that caused an error that created a file in /tmp/bitrock_debug_30443.xml. Finally, I ran it with --mode text and was able to get further ahead in the installation.


~/sencha-touch-2.0.1 $ sudo ./SenchaSDKTools-2.0.0-beta3-linux-x64.run --mode text

After accepting the terms and conditions and choosing the installation directory (left at default), I received an error at the end


Installing 0% ______________ 50% ______________ 100%
########################################Warning: Unknown error running post-install step. Installation may not complete
correctly
Press [Enter] to continue :

Upon opening `/tmp/bitrock_installer_30527.log` I saw this at the end:


Creating Shortcut for Uninstall Sencha SDK Tools 2.0.0-beta3
Unknown error running post-install step. Installation may not complete correctly
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 05/09/2012 at 20:45:46
Launching http://docs.sencha.com/touch/2-0/#!/guide/command


And running `sencha` still did not work (command not found). Running /opt/SenchaSDKTools-2.0.0-beta3/sencha yielded the following error:

$ /opt/SenchaSDKTools-2.0.0-beta3/sencha
[ERROR] Sencha SDK Tools 2.0.0-beta3 cannot be found from your system (SENCHA_SDK_TOOLS_2_0_0_BETA3 environment variable is not set). Please download and install version "2.0.0-beta3" of the tools from http://www.sencha.com/products/sdk-tools . Close this terminal and open a new one after the installation is complete.


So I ran

$ export SENCHA_SDK_TOOLS_2_0_0_BETA3=/opt/SenchaSDKTools-2.0.0-beta3

and after that

$ /opt/SenchaSDKTools-2.0.0-beta3/sencha Sencha Command v2.0.2
Copyright (c) 2012 Sencha Inc.


Usage:
sencha [module] [action] [arguments...]


Example:
sencha fs minify --from app.js --to app-minified.js --compressor closurecompiler


Available modules:

app Resolve application dependencies and build for production
fs A set of useful utility actions to work with files. Most commonly used actions are: concat, minify, delta
manifest Extract class metadata
test Unit testing using Jasmine
generate Automates the generation of projects and files
package Packages a Sencha Touch 2 application for native app stores

For more information on a specific module, simply type:
sencha [module]


For example:
sencha fs


For more information on a specific action of a specific module, simply type:
sencha [module] [action]


For example:
sencha fs minify


Finally success! I hope this helps others get up and running with what promises to be a great tool (haven't had a chance to play with it yet), and that the good folks at Sencha can update the documentation a bit more.

Ruy

lalexgraham
18 May 2012, 4:53 AM
Thanks Ruy for the information. I haven't tried your instructions yet but I have Ubuntu 11.10 (32 bit) so I am going to try them.... I'm at the point where I have a Sencha Touch 2 app built, which I have tested on Chrome browser and on my iphone through its browser.

I now want to start packaging it as an app and testing it as such but I am scratching my head after reading some of the documentation, namely this : http://docs.sencha.com/touch/2-0/#!/guide/native_packaging
(http://docs.sencha.com/touch/2-0/#!/guide/native_packaging)
Could you possibly help me with some queries:

Can you package using Ubuntu for both ios and Android ? As from the documentation it still seems support for Linux is ropey at best.

If you can package, are there any tutorials to show you step by step how to achieve this as the Sencha Touch 2 docs don't make a lot of sense to me as a newbie.

diazruy
18 May 2012, 5:02 AM
I haven't gotten around to packaging yet, but as far as I understand you need OSX in order to build iOS. I find it surprising that on that link you sent it even mentions Windows in the Required Software section. I think you can do step 1 through 3 on any platform, but for step 4 I'm pretty sure you will need a Mac

lalexgraham
18 May 2012, 2:12 PM
OK, thanks. I also looked at this post http://www.sencha.com/forum/showthread.php?185194-Sencha-SDK-Tools-for-Linux/page2 , and http://www.sencha.com/forum/showthread.php?185783-Sencha-2-command-for-Linux&p=752927&viewfull=1#post752927 . So I think I have enough to give this a go. But from what you are saying and as I understand Ubuntu / Linux doesn't directly support iTunes ...I think I will have to use Windows to get something on my phone to test with and a Mac to get something live and out there on the app store . In which case why is Sencha claiming you can build native ios apps without xcode (http://www.sencha.com/blog/sencha-touch-2-rc-native-packaging/)?

tyler.frankenstein
14 Jun 2012, 6:28 PM
Diazruy's answer worked for me:

http://www.sencha.com/forum/showthread.php?185416-Installing-Sencha-SDK-Tools-on-Linux-(Ubuntu)&p=799726&viewfull=1#post799726

arun_v
18 Jul 2012, 12:04 PM
I have exported the path... but i am getting
execvp(): No such file or directory error

Can you please help me...

user@hudson:/opt/SenchaSDKTools-2.0.0-beta3# echo $SENCHA_SDK_TOOLS_2_0_0_BETA3
/opt/SenchaSDKTools-2.0.0-beta3
user@hudson:/opt/SenchaSDKTools-2.0.0-beta3# sencha
execvp(): No such file or directory
user@hudson:/opt/SenchaSDKTools-2.0.0-beta3# /opt/SenchaSDKTools-2.0.0-beta3/sencha
execvp(): No such file or directory
root@hudson:/opt/SenchaSDKTools-2.0.0-beta3#

arun_v
18 Jul 2012, 12:05 PM
execvp(): No such file or directory in Linux ubuntu

I have exported the path... but i am getting
execvp(): No such file or directory error

Can you please help me...

user@hudson:/opt/SenchaSDKTools-2.0.0-beta3# echo $SENCHA_SDK_TOOLS_2_0_0_BETA3
/opt/SenchaSDKTools-2.0.0-beta3
user@hudson:/opt/SenchaSDKTools-2.0.0-beta3# sencha
execvp(): No such file or directory
user@hudson:/opt/SenchaSDKTools-2.0.0-beta3# /opt/SenchaSDKTools-2.0.0-beta3/sencha
execvp(): No such file or directory
root@hudson:/opt/SenchaSDKTools-2.0.0-beta3#

Greg_S
20 Aug 2012, 7:30 AM
I am having a similar issue, has anyone found a resolution on x64?

Sottilde
20 Aug 2012, 9:29 AM
I am having a similar issue, has anyone found a resolution on x64?

The following post (http://www.sencha.com/forum/showthread.php?192823-Failed-to-run-SENCHA-SDK-TOOLS-2-BETA2-on-linux-64bit&p=788918&viewfull=1#post788918) fixed it for me:



sudo apt-get install ia32-libs


A huge pain and a huge library but it works on my build servers.

I have written a more comprehensive guide (https://docs.google.com/document/pub?id=1_yrwYiRTeExJiSYDhhPV75UEo8HUyl_RDq0JzxIRwwk) you may want to peruse.

Greg_S
21 Aug 2012, 2:02 AM
Sottilde thanks for your help, I now get a much better result