Hi folks.
I am just starting rails and have two current issues. I have installed
everything, I think, and (first) I’m having permissions feedback upon
rails generate:
$ rails generate
/Library/Ruby/Gems/1.8/gems/railties-3.1.0/lib/rails/script_rails_loader.rb:11:
warning: Insecure world writable dir /Library/WebServer/Documents in PATH, mode
040777
/Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:136: warning:
Insecure world writable dir /Library/WebServer/Documents in PATH, mode 040777
I set my project folder permissions to -R 777 to alleviate permissions
issues. But, it’s giving me this.
What are the proper permissions for a
/Library/WebServer/Documents/project1/ directory?
Second, I seem to be having some mysql2 gem issues.
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:120:in
require' from /Library/WebServer/Documents/simple_cms/config/application.rb:7 from /Library/Ruby/Gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:21:inrequire’
from /Library/Ruby/Gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:21
from script/rails:6:in `require’
from script/rails:6
Notes:
-
I have 64 bit mysql installed. Server version: 5.5.16 MySQL Community
Server (GPL) for MacBook (INtel Core 2 Duo) -
root password was changed, but there is nothing in the database.yml
corresponding to the root password. I am assuming this is the account
that’s being used. Should I change that? -
the mysql2 gem is installed:
arel (2.2.1)
jquery-rails (1.0.14)
rack-test (0.6.1)
treetop (1.4.10)
tzinfo (0.3.29)
uglifier (1.0.3)
I tried with the following as well, and it still produces the same
result:
sudo gem install mysql2 –
–with-mysql-config=/usr/local/mysql-5.5.16-osx10.6-x86_64/bin/mysql_config
This is on OS X Lion 10.7.1. Any help appreciated.
Cheers