warning: Insecure world writable dir when I run a ruby or gem command

后端 未结 5 767
孤独总比滥情好
孤独总比滥情好 2020-12-04 12:21

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-

5条回答
  •  借酒劲吻你
    2020-12-04 12:43

    Find your gem path so we can edit the bundler gem. Execute the following in your shell:

    $ ruby -r rubygems -e "p Gem.path"
    

    Navigate to your gem path and cd into the version of bundler currently being used. Now navigate to lib -> bundler and open runtime.rb in your favorite text editor. Add “$VERBOSE = nil” to line 2.

    require "digest/sha1" 
    $VERBOSE = nil 
    module Bundler   
    class Runtime < Environment
        include SharedHelpers
    
        def setup(*groups)
          # Has to happen first
          clean_load_path
    

    ...

提交回复
热议问题