Reputation: 307
I have been trying to install rails usuing terminal.When i write on Terminal gem install bundler
I get the results like this:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /Users/RiduanlIslam in PATH, mode 040777
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
Can anybody please tell me how can i fix the problem?How can i enable file permission? Thanks!
Upvotes: 1
Views: 189
Reputation: 9443
As Andy Henson said on the comments, I'd recommend using rvm to install ruby and rails. However, to solve your issue, all you'd need to do is
sudo gem install bundler
and enter your password, assuming you're a system admin.
Upvotes: 2