Completely new to Rails. I spent hours yesterday banging my head against a brick wall trying to install everything properly on my Mac. Finally, I thought I'd got it working, so I started trying to work through this tutorial: http://net.tutsplus.com/tutorials/ruby/the-intro-to-rails-screencast-i-wish-i-had/
All goes well until about the 4-minute mark, when I type in the given instruction at the command line and get this error message.
> rails g
/Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:199: warning: Insecure world writable dir /Library/Ruby/Gems/1.8 in PATH, mode 040777
gem install minitest
/Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn/minitest.rb:9:in `require': no such file to load -- minitest/unit (LoadError)
from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn/minitest.rb:9
from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn.rb:13:in `require'
from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn.rb:13
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.2.1/lib/bundler.rb:128:in `require'
from /Applications/MAMP/htdocs/railstest/tasks/config/application.rb:13
from /Library/Ruby/Gems/1.8/gems/railties-3.2.8/lib/rails/commands.rb:24:in `require'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.8/lib/rails/commands.rb:24
from script/rails:6:in `require'
from script/rails:6
I've seen some other posts on here with similar problems, which suggest that this has something to do with file permisisons. I still can't get it to work though even after fiddling with the permissions. The permissions are:
/Library: rwxr-xr-x
/Library/Ruby: rwxr-xr-x
/Library/Ruby/Gems: rwxr-xr-x
/Library/Ruby/Gems/1.8: rwxrwxrwx
Trying to chmod on Gems/1.8 gives me an error message: "Unable to change file mode on /Library/Ruby/Gems/1.8: Operation not permitted"
So what do I need to do?
I'm running Mac OS 10.7.5, and I have XCode 4.5.1, with the command line tools installed too, if any of that matters.