简体   繁体   English

.gem规范中的本地个人目录中包含什么内容?

[英]What's in the .gem specs marshal stuff in my local personal dir?

I'm using rbenv and ruby-build with bundler, and I see a .gem file in my local personal directory, which is confusing because I thought that setting a local ruby using rbenv along with using bundler would keep all my gems in the local project file, not my local personal directory. 我正在使用带有捆绑程序的rbenv和ruby-build,在我的本地个人目录中看到一个.gem文件,这令人困惑,因为我认为使用rbenv设置本地红宝石以及使用捆绑程序会将我所有的宝石保存在本地项目文件,而不是我的本地个人目录。

Did I install something incorrectly? 我安装不正确吗? Can I delete the .gem dir in my local personal dir? 我可以删除本地个人目录中的.gem目录吗?

Thanks. 谢谢。

Are there actually any gems in ~/.gem ? 〜/ .gem中实际上有宝石吗? If not, you can delete it. 如果没有,您可以将其删除。 To prevent any future installations there, you can create an empty dir and chmod 500 on it. 为了防止在此以后进行任何安装,您可以在其中创建一个空目录和chmod 500。

See my other answer for why this dir even exists: I'm using rbenv, so why are there two Gem paths on my system? 请参阅我的另一个答案,以了解为什么这个目录甚至存在: 我正在使用rbenv,所以为什么我的系统上有两个Gem路径? (OS X Lion) (OS X Lion)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM