Hi, I am on Mac OS X Lion. I installed Ruby on Rails and mysql2 gem. When I try to run the server with "rails server" command, I get the following errors: /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/Admin/Sites/simple_cms/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 Could anyone help me? Thanks, Eleeist -- Posted via http://www.ruby-forum.com/. -- 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.
You have installed mysql ? 2011/10/17 Bartek Kowalski <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> Hi, > > I am on Mac OS X Lion. > > I installed Ruby on Rails and mysql2 gem. When I try to run the server > with "rails server" command, I get the following errors: > > /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/Admin/Sites/simple_cms/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 > > Could anyone help me? > > Thanks, > Eleeist > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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. > >-- 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.
On Oct 17, 6:35 am, Bartek Kowalski <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I am on Mac OS X Lion. > > I installed Ruby on Rails and mysql2 gem. When I try to run the server > with "rails server" command, I get the following errors: ...My guess is that you are tripping over some of the OS X preinstalled ruby components. I suggest that you start fresh with RVM using the single-user scenario, (see http://beginrescueend.com/ ) and try again. Dan Nachbar -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.