警告:当我运行ruby或gem命令时,不安全的可写dir [英] warning: Insecure world writable dir when I run a ruby or gem command
问题描述
不知道为什么我这样做,但我刚安装了RVM,新的Ruby 1.9,并重新安装了一堆宝石,我得到这个
/用户/ johnsmith / .rvm / rubies / ruby-1.9.1-p378 / bin / gem:4:警告:不安全的可写dir / opt / local / bin在PATH中,模式040777
所有东西都还在运行,但我想知道是否有办法摆脱它。 解决方案
在shell提示符下(取决于您可能需要的权限> sudo
) chmod go -w / opt / local / bin >做到这一点)。
Not sure why I'm getting this, but I just installed RVM, the new Ruby 1.9, and reinstalled a bunch of gems, and I get this
/Users/johnsmith/.rvm/rubies/ruby-1.9.1-p378/bin/gem:4: warning: Insecure world writable dir /opt/local/bin in PATH, mode 040777
Everything still runs otherwise, but I was wondering if there was a way I could get rid of it.
Just chmod go-w /opt/local/bin
at a shell prompt (depending on permissions you may need to sudo
to do that).
这篇关于警告:当我运行ruby或gem命令时,不安全的可写dir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!