How to install Sencha Cmd on Debian Jessie

Sencha Cmd on Debian Jessie

In this article I will show you how to install Sencha CMD on a Debian Jessie clean install. This means that I assume that you have not installed Java, Ruby and Sencha CMD itself. This article is intended for Windows users that are not that common with Linux.

Preliminaries

I am not a big fan of the command line, so forgive me that once in a while I use the Filemanager of the great Jessie Cinnamon GUI to make things a little easier.

Make sure that at all times you have a root terminal open, or use “su” to have administrator rights with your terminal session. So let’s go.

Step 0: Update your Linux

From the terminal command prompt, followed by Enter:

and:

Step 1: Install Ruby

From the terminal command prompt type:

Step 2: Install Java (Oracle)

Install the Java Runtime (JRE) from here: link Install 32/64 bits in accordance with your Debian installation.

Download this file that ends on ‘.tar.gz’  to your default download location: /home/youruser/Downloads

SH_014654

Go to your terminal and type followed by Enter:

Now go to your file manager and copy the downloaded ‘???.tar.gz’ Java distribution to the just created java folder. You can also do it with the command line ‘cp’ command.

SH_014655

SH_014656

Now type from the terminal prompt followed by Enter:

Make sure that the ‘tar.gz’ full filename is typed exactly as the name of the downloaded distrubution. Don’t make any mistakes here! So the example above might not correspond with your file name.

Now we have to make Java work, we do this by typing this from the terminal prompt:

Again, the name after ‘JAVA_HOME=’ might not correspond with your installed Java. To make sure you have the right one, type:

You will find the name next to your ‘tar.gz’ file. You can also delete the ‘tar.gz’ file to save space.

Step 3: Install Sencha Cmd

Before we do the final step I would give again some critics to Sencha Inc. for not having a proper installation manual for Sencha Cmd for Linux on their website. “Half work done counts as no work done”. Ok, let’s do the last bit.

First download Sencha Cmd from here: link

Save the ‘zip’ file in your default Downloads location. If you don’t have an ‘unzip’ installed in Debian Jessie, you can install ‘Ark’ with the Synaptic Package Manager. After that said, you unpack the Sencha Cmd ‘zip’ file. You can do this in the same Downloads folder. It will unpack a file with the .sh extension.

Now go to your terminal prompt and type:

Now it will install Sencha Cmd. You will get an warning complaining:

You can ignore this.

Finally add Sench Cmd to your PATH. Type this from your terminal prompt:

Make sure that the Sencha version in the PATH corresponds with the one you just installed. Simply type:

Now it will show you the version you have installed.

If everything has gone well you can now go to your Sencha Ext JS or Touch application folder and type something like “Sencha app watch” or any other Sencha Cmd instruction.

Johan van de Merwe
Dedicated to professional software development since 1985. Has worked since 1992 as IT manager in several international operating companies. Since 2007 CEO and Sencha Ext JS web application developer at Enovision GmbH.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.