Note that there are some explanatory texts on larger screens.

plurals
  1. POOn Mac: "rails generate model User" fails -- for mysql database project
    primarykey
    data
    text
    <p>I've just installed Rails on my Mac OS 10.6 and created a rails project using the following command: -- rails new simple_cms -d mysql</p> <p>Then I ran: </p> <p>-- bundle install </p> <p>This installed mysql2 and several other gems</p> <p>mysql database software is already installed. </p> <p>The very first model generation command fails for some reason though -- any thoughts?</p> <p>-- rails generate model User</p> <p>/Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mysql2-0.3.10/lib/mysql2.rb:9:in <code>require': dlopen(/Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mysql2-0.3.10/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mysql2-0.3.10/lib/mysql2/mysql2.bundle Reason: image not found - /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mysql2-0.3.10/lib/mysql2/mysql2.bundle from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mysql2-0.3.10/lib/mysql2.rb:9:in</code>' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in <code>require' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in</code>block (2 levels) in require' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in <code>each' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in</code>block in require' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in <code>each' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in</code>require' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/bundler-1.0.21/lib/bundler.rb:122:in <code>require' from /Home-Lite/RubyProjects/simple_cms/config/application.rb:7:in</code>' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/railties-3.1.1/lib/rails/commands.rb:21:in <code>require' from /Users/anilo/.rvm/gems/ruby-1.9.2-p290@rails3/gems/railties-3.1.1/lib/rails/commands.rb:21:in</code>' from script/rails:6:in <code>require' from script/rails:6:in</code>'</p> <p>Here are the gems on my machine. </p> <p>--- gem list</p> <p><strong>* LOCAL GEMS *</strong></p> <p>abstract (1.0.0) actionmailer (3.1.1, 3.0.0) actionpack (3.1.1, 3.0.0) activemodel (3.1.1, 3.0.0) activerecord (3.1.1, 3.0.0) activeresource (3.1.1, 3.0.0) activesupport (3.1.1, 3.0.0) ansi (1.4.1) arel (2.2.1, 1.0.1) builder (3.0.0, 2.1.2) bundler (1.0.21) coffee-rails (3.1.1) coffee-script (2.2.0) coffee-script-source (1.1.3) erubis (2.7.0, 2.6.6) execjs (1.2.9) hike (1.2.1) i18n (0.6.0, 0.4.2) jquery-rails (1.0.19) json (1.6.1) mail (2.3.0, 2.2.19) mime-types (1.17.2) multi_json (1.0.3) mysql2 (0.3.10) polyglot (0.3.3) rack (1.3.5, 1.2.4) rack-cache (1.1) rack-mount (0.8.3, 0.6.14) rack-ssl (1.3.2) rack-test (0.6.1, 0.5.7) rails (3.1.1) railties (3.1.1, 3.0.0) rake (0.9.2.2) rdoc (3.11) sass (3.1.10) sass-rails (3.1.5) sprockets (2.0.3) sqlite3 (1.3.4) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) turn (0.8.3) tzinfo (0.3.31) uglifier (1.1.0)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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