我已经在ubuntu中安装了rails,它在我安装的终端中工作正常,一旦我关闭终端并再次打开它,当我检查rails -v
时出现以下错误。我再次尝试安装它,但没有运气再次重复同样的事情。
The program 'rails' can be found in the following packages:
* rails
* ruby-railties-3.2
Try: sudo apt-get install <selected package>
检查ruby -v
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: apt-get install <selected package>
也为了gem list rails
The program 'gem' can be found in the following packages:
* ruby1.9.1
* rubygems
Try: apt-get install <selected package>