Sencha touch SDK command tools version3 commands on Mac not being recognised - macos

I am trying to run Sencha touch commands on my macbook pro but I am getting an error when
I run this command 'sencha' to test if the SDK command tools is installed properly.
the error message is this: -bash: sencha: command not found
Can someone help me resolve the issue please?

Command Not Found
Upon running sencha, if there is an error message appears saying "sencha: command not found" on OS X / Linux or "'sencha' is not recognized as an internal or external command, operable program or batch file." on Windows, follow these steps to troubleshoot:
Close all existing terminal / command prompt windows and re-open them.
Make sure that Sencha SDK Tools is properly installed:
The installation directory exists. By default, the installation path is /Applications/SenchaSDKTools-{version} on OS X, /opt/SenchaSDKTools-{version} on Linux, and C:\Program Files\SenchaSDKTools-{version}
The path to SDK Tools directory is prepended to your system's PATH environment variable. From the terminal, run echo $PATH (echo %PATH% on Windows). The SDK Tools directory should be displayed in part of the output. If this is not the case, add it to your PATH manually.
The environment variable SENCHA_SDK_TOOLS_{version} is set, with the value being the absolute path to the installation directory mentioned above. For example: If the installed version is '2.0.0-beta2', a SENCHA_SDK_TOOLS_2_0_0_BETA2 must be set. From the terminal, run echo $SENCHA_SDK_TOOLS_2_0_0_BETA2 (echo %SENCHA_SDK_TOOLS_2_0_0_BETA2% on Windows). If the output is empty, set the environment variable manually.
http://docs.sencha.com/touch/2-0/#!/guide/command

Related

Fresh install of Liquibase 3.10 is failing

I have just installed Liquibase 3.10 using the Windows installer on Win10 64-bit. When I run the command "liquibase --help" from the command line, the liquibase.bat file fails with the following error;
="=="" ( was unexpected at this time.
I can see by looking at the batch file the error occurs in the section where it is manipulating the JAVA_HOME environment variable.
On my system, there is no JAVA_HOME environment variable.
I'm not an expert Windows batch file programmer, so I need help with this!
PS. Liquibase is installed in the following path: C:\Program Files\liquibase

Why is PowerShell "not recognized" when installing Chocolatey?

I went to the Chocolatey website and copied the text for installing it and pasted into the administrator cmd.exe (using Windows 7). When I run the command I get:
'powershell' is not recognized as an internal or external command, operable program or batch file.
This GitHub article with Chocolatey installation instructions says:
This really is the easiest method because it requires no configuration of PowerShell prior to executing it.
It turns out that #balint was right about the path being incorrect. The path variable at some point had gotten replaced instead of appended to. I was able to install Chocolatey successfully after appending all the paths that had been erased previously!
you have some faulty PowerShell installation, or it is missing from the Windows PATH variable. Run in an administrator cmd:
cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

Why is 'ruby' not recognized as an internal or external command?

Path in user variable is the default path from the installation:
C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin
Path in system variable is directed to:
C:\RailsInstaller\Ruby1.9.3\bin
When I open the Command Prompt with Ruby and Rails, the command prompt says "'ruby' is not recognized as an internal or external command" immediately without any input.
The command prompt worked before. After I re-installed it using various methods due to unsuccessful setup, it got like this.
How can I fix it?
Please restart cmd before running ruby command.
In Windows PC:
To add bin path of your installed ruby to PATH environmental variable
1. right click on "My Computer" -> Properties -> Advanced System Settings -> Environmental Variables -> Select "Path" ->Edit
Example path shown below:
D:\Ruby22\bin;
2. Restart cmd after changes
Refer below image:
Ruby Path setting in Windows 7 and other windows OS
So,
C:\RailsInstaller\Ruby1.9.3.\bin is the place where your ruby.exe is saved?
If that's correct, you should be able to access the ruby commands via the Command Prompt.
When you try: REG QUERY "HKCU\Environment" in the console, is there an output like?:
PATH REG_EXPAND_SZ C:\RailsInstaller\Ruby1.9.3.\bin
Ensure you have the correct x32 or x64 bit version of Ruby
installed.
Ensure you have the PATH environment variable setup, this should be
done automatically if selected upon install.
Lastly ensure you restart your command prompt.

Problems installing Python 27 on Windows 7 - cannot add Python to PYTHON PATH

I installed Python 2.7.3 on my Windows 7 computer using the binary, the first link. After installing it, IDLE works but nothing else recognizes Python. For example, typing python at the command prompt returns the message "'Python is not recognized as an internal or external command, operable program or bath file."
Following this post, I made sure that python 2.7 was in the PYTHONPATH environment variable. However, that didn't help.
What should I do?
PYTHONPATH system variable is used by Python itself to find directories with installed packages.
PATH system variable is used by OS (particularly Windows) to find executables which can open certain files like *.py scripts.
So, you need to add directory with python.exe (for example C:\Python27) to PATH system (or user) variable and not to PYTHONPATH. It can be done the same way as described in the link you've found in the same tool window.
For example on my machine PATH system variable is set to C:\Python27;C:\MinGW\bin;...
Like Vladimir commented, for setting up python in windows, you need to add the directory where your python.exe is located (for example C:\Python27) to PATH
You can confirm if python is in your environment variables by looking at the output of echo %path%
Keep in mind that after editing the PATH variable using the control panel, you have to open a new terminal, as the setting will NOT be updated in existing terminals.
Another possibility is that you added the wrong path to the PATH variable. Verify it.
The bottom line is, if the directory of your python.exe is really in PATH, then running python will really work.
Here are your steps:
Right-click Computer and select Properties.
In the dialog box, select Advanced System Settings.
In the next dialog, select Environment Variables. In the User Variables section, edit the PATH statement to include this:
C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;
Now, you can open a command prompt (Start Menu|Accessories or Start Menu|Run|cmd) and type:
C:\> python
That will load the Python interpreter!
You can install for single user rather than choosing the option of "Install for all users". I was facing the same issue, but when I tried installing just for myself, I was able to install successfully.

GAE Go Windows - "Cannot run program", "is not a valid Win32 application"

I've been trying to run a GAE Go project I developed on my Mac on my Windows machine with GoClipse after installing and configuring the appropriate SDKs and so forth. When attempting to run the project, I get this error:
Exception occurred executing command line. Cannot run program
"C:\GoogleAppEngine\dev_appserver.py" (in directory
"D:\Golang\workspace\Project\src\pkg"): CreateProcess
error=193, %1 is not a valid Win32 application
How can I fix that error in order to run my project?
While the below configuration works on the Mac as it has Python installed by default, Windows requires a different configuration.
On Mac the GoClipse External Tools Configuration would be:
Location: /GoogleAppEngine/dev_appserver.py
Working Directory: ${workspace_loc:/Project/src/pkg}
Arguments: .
The Windows configuration should look like:
Location: C:\Python27\Python.exe
Working Directory:
Arguments: C:\GoogleAppEngine\dev_appserver.py "${workspace_loc:/Project/src/pkg}"
Trying to run .py (Which IMO is a Python file?) wont work directly on windows. You will need to install Python and then pass the above filename to Python something like (I don't know Python so don't go by exact syntax, you might need to look around)
python "C:\GoogleAppEngine\dev_appserver.py
The reason it's working on Mac is because Python comes pre-installed on mac as cited here But on windows it doesn't. So you can install Python and add the Python's bin folder to path, and then run above script and it should run fine!

Resources