2012-08-09 115 views
1

我是新来的红宝石轨道上。我尝试安装红宝石,导轨使用此命令& RVM:CentOS上的ROR安装

curl -L get.rvm.io | bash -s stable --rails 

它能正常工作,但现在我想检查红宝石&轨(ruby -vrails -v)它说command not found的版本。

这就是它显示了(我已经贴最后几行只...):

Installing RDoc documentation for json-1.7.4... 
Installing RDoc documentation for rdoc-3.12... 
Installing RDoc documentation for railties-3.2.7... 
Installing RDoc documentation for rails-3.2.7... 



* To start using RVM you need to run `source /home/betteruse/.rvm/scripts/rvm` 
    in all your open shell windows, in rare cases you need to reopen all shell windows. 

    * To start using rails you need to run `rails new <project_dir>`. 

[[email protected] ~]$ ruby -v 
bash: ruby: command not found 
[[email protected] ~]$ rails -v 
bash: rails: command not found 

谁能帮助??? 谢谢!

回答

1

尝试RVM重装

如果还是不行然后插入以下行到你的.bashrc或者.bash_profile文件中

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function 

也确保你已经从主目录运行curl -L get.rvm.io | bash -s stable --rails

+0

嘿感谢洛肯..我重新安装它从主目录..它现在工作正常.. – prajwalkondawar 2012-08-10 06:30:39

+0

所以,你可以请标记这个答案为接受,所以这将有助于开发安装的Rails的新手:) – 2012-08-10 13:26:48