开发者

How to nuke all Ruby Gems from the system and start over

开发者 https://www.devze.com 2023-01-08 23:37 出处:网络
What\'s the easiest way to start over with Ruby Gems? I have Ruby 1.8.7 (OSX, ports) installed and I have also installed rails and some other random stuff a while back. Now the gems system seems to be

What's the easiest way to start over with Ruby Gems? I have Ruby 1.8.7 (OSX, ports) installed and I have also installed rails and some other random stuff a while back. Now the gems system seems to be total开发者_运维问答ly dysfunctional and I can't upgrade rails. So is there a way to just nuke the gems so I can reinstall all this stuff with current versions?


Wipe your current gems from GEM PATH directory (you can check it via $ gem env). Then run $ which -a gem to nuke the bin files. After that - reinstall rubygems from the source and enjoy your new rubygems life.

0

精彩评论

暂无评论...
验证码 换一张
取 消