2

I've installed Sencha by using the Terminal but I can't run if from the Terminal

samuel@samuel-pc:~/Downloads$ sudo ./SenchaCmd-6.5.0.180-linux-i386.sh -q
Starting Installer ...
The installation directory has been set to /root/bin/Sencha/Cmd/6.5.0.180.
Extracting files ...
Finishing installation ...
samuel@samuel-pc:~/Downloads$ sencha
sencha: command not found
Vy Do
  • 46,709
  • 59
  • 215
  • 313
Samuel Muiruri
  • 492
  • 1
  • 8
  • 17
  • You must set environment variable. – Vy Do Jun 29 '17 at 15:49
  • which variable? @DoNhuVy can you be more specific – Samuel Muiruri Jun 29 '17 at 15:52
  • Let's do like official document in my answer. At this time, I don't use Linux, therefore, you search `How to set environment variable on ....?`. It is nearly same with setting environment variable on Windows or macOS. – Vy Do Jun 29 '17 at 15:54

1 Answers1

4

Because you don't set environment variable.

If running sencha results in the error message sencha: command not found on OSX/Linux or 'sencha' is not recognized as an internal or external command, operable program or batch file on Windows, follow these steps: ...

This is official guide: https://docs.sencha.com/cmd/guides/intro_to_cmd.html#intro_to_cmd_-_command_not_found

Vy Do
  • 46,709
  • 59
  • 215
  • 313