ubuntu 卸载rails

先查出rails安装路径
$ gem list -d thin

*** LOCAL GEMS ***

rails (3.0.0.beta4)
    Rubyforge: http://rubyforge.org/projects/rails
    Homepage: http://www.rubyonrails.org
    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1



再删除
$ sudo gem uninstall --install-dir /usr/local/ruby/lib/ruby/gems/1.9.1 rails
[sudo] password for ltq: 
Remove executables:
	rails

in addition to the gem? [Yn]  y
Removing rails
Successfully uninstalled rails-3.0.0.beta4

你可能感兴趣的:(java,ubuntu,Ruby,Rails)