Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 952
Trip Avatar asked May 09 '10 02:05

Trip


1 Answers

Just chmod go-w /opt/local/bin at a shell prompt (depending on permissions you may need to sudo to do that).

like image 83
Alex Martelli Avatar answered Sep 28 '22 06:09

Alex Martelli