2012-08-09 107 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