问题
I'm trying to install Sencha-Cmd-6.0.2.14 in xUbuntu.
I downloaded SenchaCmd-6.0.2-linux-amd64.sh.zip
and unzipped it to my desktop.
I installed Java by executing sudo apt-get install default-jdk -y
.
Then I executed ./SenchaCmd-6.0.2.14-linux-amd64.sh
. The installation window appeared and I successfully went through the process.
Upon completion, I typed in sencha
at the command prompt but I got a command not found error.
回答1:
Sencha is probably not in your $PATH, I'm not sure where it installs but probably somewhere in your home directory. Make sure the Sencha install directory is not in your $PATH by issueing the following command in your terminal
echo $PATH
Assuming you use bash and sencha is now your $PATH, add, for example, this to your ~/.bashrc
export PATH=$PATH:~/sencha/cmd/6.0.2.14/bin
You need to find the correct path yourlself. That should do the trick.
来源:https://stackoverflow.com/questions/35400680/sencha-cmd-linux-command-not-found