I am new in ruby development and in the first lines, shit happens
Normaly we pass trhougt the “Hello World”,but.
See i typed this lines to create and run my first project having a mysql
server installed on my OSX.
sudo gem install mysql2
sudo gem install rails
rails new blog -d mysql
cd blog
rails server
then happens this:
/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle:
dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle,
9): Library not loaded: libmysqlclient.18.dylib (LoadError)
Referenced from:
/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle
Reason: image not found –
/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle
from /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2.rb:9
from
/Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in
require’ from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in
require’
from
/Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in
each’ from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in
require’
from
/Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in
each’ from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in
require’
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:122:in
require’ from /Users/titoleite4/Documents/Rails/blog/config/application.rb:7 from /Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:52:in
require’
from /Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:52
from
/Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:49:in
tap’ from /Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:49 from script/rails:6:in
require’
from script/rails:6
Any help would be cool \0/.