0

我使用 ruby​​ 2 和 rails 3 创建了我的第一个测试应用程序。当我使用命令时,rails server我得到了这个:

/Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `require': dlopen(/Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
  Referenced from: /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
  Reason: image not found - /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/speedy/Sites/simple_cms/config/application.rb:7:in `<top (required)>'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
    from /Users/speedy/.rvm/gems/ruby-2.0.0-p195/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
Speedys-MacBook-Pro:simple_cms speedy$ 

不知道什么似乎错了。任何指针?

4

0 回答 0