2011-01-12 167 views
0

我搞砸了我的rubygem依赖项。无法卸载红宝石宝石

这是我的宝石名单

*** LOCAL GEMS *** 

actionmailer (2.3.5, 1.3.6) 
actionpack (2.3.5, 1.13.6) 
actionwebservice (1.2.6) 
activemodel (3.0.3) 
activerecord (3.0.3, 2.3.5, 1.15.6) 
activeresource (3.0.3, 2.3.5) 
activesupport (3.0.3, 2.3.5, 1.4.4) 
acts_as_ferret (0.4.3) 
builder (2.1.2) 
bundler (1.0.7) 
capistrano (2.5.2) 
cgi_multipart_eof_fix (2.5.0) 
daemons (1.0.10) 
devise (1.0.5) 
dnssd (0.6.0) 
erubis (2.6.6) 
fastthread (1.0.1) 
fcgi (0.8.7) 
ferret (0.11.6) 
gem_plugin (0.2.3) 
highline (1.5.0) 
hpricot (0.6.164) 
i18n (0.4.2) 
libxml-ruby (1.1.2) 
mail (2.2.9) 
mime-types (1.16) 
mongrel (1.1.5) 
needle (1.3.0) 
net-scp (1.0.1) 
net-sftp (2.0.1, 1.1.1) 
net-ssh (2.0.4, 1.1.4) 
net-ssh-gateway (1.0.0) 
polyglot (0.3.1) 
rack (1.2.1, 1.0.1) 
rack-mount (0.6.13) 
rack-test (0.5.6) 
rails (2.3.5, 1.2.6) 
railties (3.0.3) 
rake (0.8.7, 0.8.3) 
RedCloth (4.1.1) 
ruby-openid (2.1.2) 
ruby-yadis (0.3.4) 
rubygems-update (1.4.2) 
rubynode (0.1.5) 
sqlite3-ruby (1.2.4) 
termios (0.9.4) 
thor (0.14.4) 
treetop (1.4.8) 
tzinfo (0.3.23) 
warden (1.0.3) 
xmpp4r (0.4) 

现在,当我尝试卸载轨道,我得到这个错误

dyres212-79:~ ranjiththavamaniraj$ sudo gem uninstall rails -v 2.3.5 
Password: 
ERROR: While executing gem ... (Gem::InstallError) 
    cannot uninstall, check `gem list -d rails` 
+3

哟试过只删除所有文件?据我所知,安装rails时创建的系统库或注册表设置(windows)等不存在,只需从系统中删除文件就足够了。下次使用RVM。 – cbrulak 2011-01-12 18:41:46

回答

0

错误提示,钢轨该版本可能不存在被卸载。无论如何,我建议你使用RVM。它是一个更好的做法,以管理多个红宝石和rails版本。