我正试图在我的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但没有成功!!我遗漏了什么??
发布于 2015-06-03 10:33:28
创建一个指向激活器的符号链接:
sudo ln -s /home/govind/activator-1.3.4/activator /usr/bin/activator您不需要编辑bashrc配置文件。
发布于 2016-08-25 17:33:10
我认为文档应该是fixed.The路径,但在前面提到的目录中,最近的版本没有可执行的激活程序。相反,您可以在bin文件夹中找到这个。
所以对于早期版本的激活剂
export PATH=/home/<user>/activator-dist-1.3.2:$PATH应该可以,对于最近的版本来说,
export PATH=/home/<user>/activator-dist-x.x.x/bin:$PATH/bin在播放文档中没有提到
发布于 2015-06-03 10:29:47
超级用户可能没有在activator中设置$PATH。如果确实需要sudo,请尝试
sudo /home/govind/activator-1.3.2/activator或者将activator复制到/usr/bin。否则,所描述的过程证明是有效的。
https://stackoverflow.com/questions/30616874
复制相似问题