安装Play!在Linux上使用激活器 [英] Install Play! with activator on linux
问题描述
我是Play框架的新手!和Linux,我正在尝试安装Play!斯卡拉.
I'm new with the framework Play! and Linux and I'm trying to install Play! scala.
我正在关注官方教程(官方游戏!教程)
I'm following the official tutorial (official play! tutorial)
但是我有这个问题:
当我运行此命令时:$ activator new my-first-app play-scala
我有这个警告:
The program 'new' is currently not installed. You can install it by typing:
sudo apt-get install nmh
当我运行sudo apt-get install nmh
时,它说:nmh is already the newest version.
(而且我仍然有同样的问题)
And when I run sudo apt-get install nmh
It's said : nmh is already the newest version.
(and I still have the same problem)
我也尝试运行激活器UI,但是我也有一个错误:
I also tried to run the activator UI, but I have an error as well :
Output key: !=unknown/error, -=none, 1=yes/on, 0=no/off
我做错什么了吗?
提前谢谢!
我已经定义了PATH变量,但是在关闭bash之后它已被取消.是问题所在.
Edit : I had defined the PATH variable, but it has been canceled after that I closed the bash. It was the problem.
因此,我尝试使用以下命令明确定义PATH变量:
So I tried to define definitely the PATH variable with this command :
export PATH=$PATH
但是没有用 我也尝试过这个:
but it didn't work I also tried this :
echo "export PATH=$PATH:/home/sim/Bureau/Site/play-2.2.3/" >> /etc/bash.bashrc
该行已被写入bash.bashrc文件中,但仍然无法正常工作. 我该如何明确定义PATH变量?
The line has been written in the bash.bashrc file, but it still doesn't work. How can I define the PATH variable definitely?
推荐答案
正如我的评论中所述,您希望将export PATH=$PATH:/full/path/to/activator/directory
添加到您的.bashrc
文件中.
As stated in my comment, you'll want to add export PATH=$PATH:/full/path/to/activator/directory
to your .bashrc
file.
这篇关于安装Play!在Linux上使用激活器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!