Note that there are some explanatory texts on larger screens.

plurals
  1. POUse Mysql2 for Ruby
    text
    copied!<p>I try to run rails S and get the following error. </p> <pre><code> /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.8/lib/mysql2.rb:9:in `require': dlopen(/Users/KaushiK/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.8/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/mysql-5.5.10-osx10.6-x86_64/lib/libmysqlclient.18.dylib (LoadError) Referenced from: /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.8/lib/mysql2/mysql2.bundle Reason: image not found - /Users/KaushiK/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.8/lib/mysql2/mysql2.bundle from /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.8/lib/mysql2.rb:9:in `&lt;top (required)&gt;' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require' from /Users/ME/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:122:in `require' from /Users/ME/Desktop/MyRailProjects/first_app/config/application.rb:7:in `&lt;top (required)&gt;' from /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:52:in `require' from /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:52:in `block in &lt;top (required)&gt;' from /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap' from /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `&lt;top (required)&gt;' from script/rails:6:in `require' from script/rails:6:in `&lt;main&gt;' </code></pre> <p>I followed a previous thread (http://stackoverflow.com/questions/5394873/trying-to-access-my-ruby-project-loaderror-pertaining-to-mysql) and wrote the following,</p> <pre><code> sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql-5.5.10- osx10.7-x86_64/lib/libmysqlclient.18.dylib /Users/ME/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.8/lib/mysql2/mysql2.bundle </code></pre> <p>Which did nothing. I mean it went through then i wrote this. </p> <pre><code>sudo ln /usr/local/mysql-5.5.10-osx10.7-x86_64/bin/mysql /usr/local/mysql/bin/mysql </code></pre> <p>When i type this it says</p> <pre><code> ln: /usr/local/mysql-5.5.10-osx10.7-x86_64/bin/mysql: No such file or directory </code></pre> <p>I have no idea why. and I cant see the files and directories even though i enabled view hidden files. I do not know how to debug this. </p>
 

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