开发者

How to remove Ruby Gems which have failed to install properly

开发者 https://www.devze.com 2023-01-14 12:33 出处:网络
Is there 开发者_开发百科a prescribed way to \"clean up\" Ruby Gems which have native extensions that have failed to build. There are directories/files left in the gems directory, however gem list --lo

Is there 开发者_开发百科a prescribed way to "clean up" Ruby Gems which have native extensions that have failed to build. There are directories/files left in the gems directory, however gem list --local does not list them as being installed. e.g. sqlite3-ruby, linecache, mongo


here is how you can remove a specific version of the gem:

gem uninstall (gem name here) --version (version number here)

to remove gems from a specific version and back use:

gem uninstall (gem name here) --version '<(version number here)'

this will remove all lesser versions.


no predefined way. The good news is that with 1.9.2, it should not count these as gems anymore (I assume that you're on 1.9.1)?

0

精彩评论

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