我正在尝试在我的 linux 系统中安装激活器。
所以我先安装java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
下载成功
然后我下载了激活器
sudo wget downloads.typesafe.com/typesafe-activator/1.3.4/ypesafe-activator-1.3.4.zip
然后添加路径
export PATH=$PATH:/home/govind/activator-1.3.4/
然后重新加载bash
source ~/.bashrc
然后我尝试启动激活器
govind@LINUXSERVER:~$ sudo activator
sudo: activator: command not found
我试着打印路径
govind@LINUXSERVER:~$ $PATH
-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/govind/activator-1.3.4/: No such file or directory
但是
govind@LINUXSERVER:~$ ls /home/govind/activator-1.3.4/
activator activator-launch-1.3.4.jar README.html templates
activator.bat LICENSE.html repository
但是没有成功!!我错过了什么??
最佳答案
创建指向激活器的符号链接(symbolic link):
sudo ln -s /home/govind/activator-1.3.4/activator /usr/bin/activator
您不需要编辑 bashrc 配置文件。
关于java - 激活器 : command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30616874/