当我尝试启动irb时,我收到错误ERROR: Missing RVM environment file: '/home/tom/.rvm/environments/ruby-1.9.2-p180'
有趣的是,我的主目录是thomas,而不是tom - RVM使用我的主目录名称之前我必须重新安装Ubuntu并随心所欲地重命名。 /home/thomas/.rvm/environments/ruby-1.9.2-p180
处没有文件。我尝试使用这些命令(http://www.mkoby.com/2011/06/03/completely-removing-rvm/)卸载RVM,但错误仍然存在。我认为我的.irbrc文件没有做任何可疑的事情:
IRB.conf[:PROMPT][:CUSTOM] = {
:PROMPT_I => "%3n :: ",
:PROMPT_S => "%3n %l>> ",
:PROMPT_C => "%3n .. ",
:PROMPT_N => "%3n .. ",
:RETURN => " => %s\n"
}
IRB.conf[:PROMPT_MODE] = :CUSTOM
IRB.conf[:AUTO_INDENT] = true
# Stuff to load
require 'pp'
require 'irb/completion'
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
我接下来可以尝试什么?
答案 0 :(得分:0)
检查以下
echo $HOME -- should point to the correct home directory
which rvm -- should pick rvm from the correct home directory
which irb -- should pick irb from the correct location
gem env -- check if the gem paths are correctly set.
顺便说一句,你的rvm命令运行正常。 尝试做
rvm list
rvm use 1.9.2