Hey everyone, i''m super new to Rails and excited to get going!
I''m
following the Ruby on Rails Essentials 3 tutorial from Lynda very
closely and came across an error at the step when launching WEBrick.
MY Setup:
I am on OS X. I have installed the MySQL client and ran it from my OS
X system prefs. I double checked my gems and mysql (2.8.1) and mysql2
(0.3.6, 0.2.11) are BOTH listed in my local gems list in terminal. I
can launch MySQL in terminal as well.
Problem:
So, the issue is that when launching WEBrick via the ''davidd$ rails
server'' command I get:
davidd$ rails server
/Library/Ruby/Gems/1.8/gems/mysql2-0.2.11/lib/mysql2/mysql2.bundle:
dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.11/lib/mysql2/
mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib
(LoadError)
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.11/lib/
mysql2/mysql2.bundle
Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysql2-0.2.11/
lib/mysql2/mysql2.bundle
from /Library/Ruby/Gems/1.8/gems/mysql2-0.2.11/lib/mysql2.rb:9
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/
runtime.rb:68:in `require''
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/
runtime.rb:68:in `require''
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/
runtime.rb:66:in `each''
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/
runtime.rb:66:in `require''
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/
runtime.rb:55:in `each''
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/
runtime.rb:55:in `require''
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler.rb:120:in
`require''
from /Users/daviddiliberto/Sites/simple_cms/config/application.rb:7
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:
28:in `require''
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:
28
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:
27:in `tap''
from /Library/Ruby/Gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:
27
from script/rails:6:in `require''
from script/rails:6
Any cause for this? Is there any way I can remove the mysql gems and
try re-installing them? Thanks so much for any help you guys may have!
DD
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.