Can I delete some folders of nokogiri and capybara-webkit inside of my rvm gemset?

爷,独闯天下 提交于 2019-11-30 16:17:09

问题


I was using a disk analyzer and I noticed in my .rvm folder two gems, nokogiri and capybara-webkit, bigger than the usual:

Checking inside of them I found that for nokogiri there is a temp folder and for capybara-webkit a source folder.

My question is: Is it safe to delete these folders?(Yeah, I'm a greedy disk space saver) and why nokogiri is creating that temporary folder? Because I have another gemset (with a lower version of ruby and nokogiri) and there isn't creating that folder.


回答1:


Yes, you can remove the tmp directory.

If you don't have a new-enough version of libxml2 or libxslt nokogiri downloads and builds it for you to link against. Unfortunately RubyGems doesn't ask the nokogiri to clean up after itself at this time, so these build artifacts are left around.




回答2:


I don't really have an answer, but if it were me I'd move the folder(s) aside, test my apps or whatever, then delete if stuff still works.



来源:https://stackoverflow.com/questions/18731388/can-i-delete-some-folders-of-nokogiri-and-capybara-webkit-inside-of-my-rvm-gemse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!