Hello, I started a class on RoR, and the instructor is using WEBrick, which he says "ships with Rails." Is that still true? I''ve followed all the other instructions, I believe, and I''m not getting good messages when I type rails server . Instead I get joelrwesley$ rails server /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/ mysql2.rb:9:in `require'': dlopen(/Users/joelrwesley/.rvm/gems/ ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/ mysql2-0.3.11/lib/mysql2/mysql2.bundle Reason: image not found - /Users/joelrwesley/.rvm/gems/ruby-1.9.3- p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/ lib/mysql2.rb:9:in `<top (required)>'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler/runtime.rb:68:in `require'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler/runtime.rb:68:in `block (2 levels) in require'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler/runtime.rb:66:in `each'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler/runtime.rb:66:in `block in require'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler/runtime.rb:55:in `each'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler/runtime.rb:55:in `require'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ lib/bundler.rb:122:in `require'' from /Users/joelrwesley/Desktop/Sites/simple_cms/config/ application.rb:7:in `<top (required)>'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ lib/rails/commands.rb:53:in `require'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ lib/rails/commands.rb:53:in `block in <top (required)>'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ lib/rails/commands.rb:50:in `tap'' from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ lib/rails/commands.rb:50:in `<top (required)>'' from script/rails:6:in `require'' from script/rails:6:in `<main>'' joelrwesley$ Thanks, Joel -- 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 Wed, Feb 29, 2012 at 6:48 PM, Joel <joel.wesley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > I started a class on RoR, and the instructor is using WEBrick, which > he says "ships with Rails." Is that still true? I''ve followed all > the other instructions, I believe, and I''m not getting good messages > when I type rails server . Instead I get >Did you start with ''bundle install''? If then also read this post http://stackoverflow.com/questions/4546698/library-not-loaded-libmysqlclient-16-dylib-error-when-trying-to-run-rails-serv -- Greg Akins http://twitter.com/akinsgre -- 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.
Joel wrote in post #1049544:> Hello, > > I started a class on RoR, and the instructor is using WEBrick, which > he says "ships with Rails." Is that still true? I''ve followed all > the other instructions, I believe, and I''m not getting good messages > when I type rails server . Instead I getActually, I don''t think that''s quite accurate. I pretty sure WEBrick get installed with Ruby. In any case I don''t use WEBRick. My particular preference is Phusion Passenger. I use the "standalone" for development. $ gem install passenger $ cd my_rails_app $ passenger start This works great for my needs. -- 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.
Sure the problem is WEBrick? Error message seems to be complaining about mysql. Did you install mysql? On 02/29/2012 03:48 PM, Joel wrote:> Hello, > > I started a class on RoR, and the instructor is using WEBrick, which > he says "ships with Rails." Is that still true? I''ve followed all > the other instructions, I believe, and I''m not getting good messages > when I type rails server . Instead I get > > joelrwesley$ rails server > /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/ > mysql2.rb:9:in `require'': dlopen(/Users/joelrwesley/.rvm/gems/ > ruby-1.9.3-p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): > Library not loaded: libmysqlclient.18.dylib (LoadError) > Referenced from: /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/ > mysql2-0.3.11/lib/mysql2/mysql2.bundle > Reason: image not found - /Users/joelrwesley/.rvm/gems/ruby-1.9.3- > p125/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.11/ > lib/mysql2.rb:9:in `<top (required)>'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler/runtime.rb:68:in `require'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler/runtime.rb:68:in `block (2 levels) in require'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler/runtime.rb:66:in `each'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler/runtime.rb:66:in `block in require'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler/runtime.rb:55:in `each'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler/runtime.rb:55:in `require'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.0.22/ > lib/bundler.rb:122:in `require'' > from /Users/joelrwesley/Desktop/Sites/simple_cms/config/ > application.rb:7:in `<top (required)>'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ > lib/rails/commands.rb:53:in `require'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ > lib/rails/commands.rb:53:in `block in<top (required)>'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ > lib/rails/commands.rb:50:in `tap'' > from /Users/joelrwesley/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/ > lib/rails/commands.rb:50:in `<top (required)>'' > from script/rails:6:in `require'' > from script/rails:6:in `<main>'' > joelrwesley$ > > > Thanks, > Joel >-- 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.
I agree with Adrian, it seems that the error is complaining about mySQL not being installed. Are you sure you have the mySQL server installed on your system? if yes Then make sure to add the ''mysql2'' gem to your gemfile. Cheers!! 2012/2/29 Adrian Caceres <caceresad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Sure the problem is WEBrick? Error message seems to be complaining about > mysql. Did you install mysql? > > > > On 02/29/2012 03:48 PM, Joel wrote: > >> Hello, >> >> I started a class on RoR, and the instructor is using WEBrick, which >> he says "ships with Rails." Is that still true? I''ve followed all >> the other instructions, I believe, and I''m not getting good messages >> when I type rails server . Instead I get >> >> joelrwesley$ rails server >> /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/mysql2-0.**3.11/lib/ >> mysql2.rb:9:in `require'': dlopen(/Users/joelrwesley/.**rvm/gems/ >> ruby-1.9.3-p125/gems/mysql2-0.**3.11/lib/mysql2/mysql2.bundle, 9): >> Library not loaded: libmysqlclient.18.dylib (LoadError) >> Referenced from: /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/ >> mysql2-0.3.11/lib/mysql2/**mysql2.bundle >> Reason: image not found - /Users/joelrwesley/.rvm/gems/**ruby-1.9.3- >> p125/gems/mysql2-0.3.11/lib/**mysql2/mysql2.bundle >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/mysql2-0. >> **3.11/ >> lib/mysql2.rb:9:in `<top (required)>'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler/runtime.rb:68:in `require'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler/runtime.rb:68:in `block (2 levels) in require'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler/runtime.rb:66:in `each'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler/runtime.rb:66:in `block in require'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler/runtime.rb:55:in `each'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler/runtime.rb:55:in `require'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/bundler-* >> *1.0.22/ >> lib/bundler.rb:122:in `require'' >> from /Users/joelrwesley/Desktop/**Sites/simple_cms/config/ >> application.rb:7:in `<top (required)>'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/railties- >> **3.2.1/ >> lib/rails/commands.rb:53:in `require'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/railties- >> **3.2.1/ >> lib/rails/commands.rb:53:in `block in<top (required)>'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/railties- >> **3.2.1/ >> lib/rails/commands.rb:50:in `tap'' >> from /Users/joelrwesley/.rvm/gems/**ruby-1.9.3-p125/gems/railties- >> **3.2.1/ >> lib/rails/commands.rb:50:in `<top (required)>'' >> from script/rails:6:in `require'' >> from script/rails:6:in `<main>'' >> joelrwesley$ >> >> >> Thanks, >> Joel >> >> > -- > 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@googlegroups.**com<rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe@**googlegroups.com<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at http://groups.google.com/** > group/rubyonrails-talk?hl=en<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.
sudo apt-get install libmysql-ruby libmysqlclient-dev Enjoy. -- 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.