Note that there are some explanatory texts on larger screens.

plurals
  1. POinstalling mysql2 gem errors
    primarykey
    data
    text
    <p>I installed ruby and ruby gems through macport but the gem list does not include mysql2. So how would I get mysql2 gem installed inside my gem list which is inside "/opt/local/bin/gem"</p> <p>Also, what is the mysql2 gem? I have mysql gem and only want to use mysql, not really sure what it means by mysql2. It gives my a mysql2 error when I try to launch webrick on an app.</p> <p>UPDATE: I ran sudo gem install mysql2 and got the following:</p> <blockquote> <p>Building native extensions. This could take a while... Successfully installed mysql2-0.2.7 1 gem installed Installing ri documentation for mysql2-0.2.7...</p> <p>Enclosing class/module 'mMysql2' for class Client not known</p> <p>Enclosing class/module 'mMysql2' for class Result not known Installing RDoc documentation for mysql2-0.2.7...</p> <p>Enclosing class/module 'mMysql2' for class Client not known</p> <p>Enclosing class/module 'mMysql2' for class Result not known</p> </blockquote> <p>Assuming that mysql2 installed, even though the docs didn't I get the following error when I try to launch webrick in my app.</p> <p>rails server:</p> <blockquote> <p>/opt/local/lib/ruby/gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle: dlopen(/opt/local/lib/ruby/gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)<br> Referenced from: /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle from /opt/local/lib/ruby/gems/1.8/gems/mysql2-0.2.7/lib/mysql2.rb:8 from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in <code>require' from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in </code>require' from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in <code>each' from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in </code>require' from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in <code>each' from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in </code>require' from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler.rb:112:in <code>require' from /Users/summer/Sites/simple_cms/config/application.rb:7 from /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:28:in </code>require' from /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:28 from /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27:in <code>tap' from /opt/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/commands.rb:27 from script/rails:6:in</code>require' from script/rails:6</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload