-3
ruby script/server
=> Booting WEBrick...
/home/rao/Documents/homir /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:74:in `establish_connection': Please install the postgres adapter: `gem install activerecord-postgres-adapter` (no such file to load -- active_record/connection_adapters/postgres_adapter) (RuntimeError)
    from /home/rao/Documents/homir /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:58:in `establish_connection'
    from /home/rao/Documents/homir /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:53:in `establish_connection'
    from ./script/../config/../vendor/rails/railties/lib/initializer.rb:392:in `initialize_database'
    from ./script/../config/../vendor/rails/railties/lib/initializer.rb:139:in `process'
    from ./script/../config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
    from ./script/../config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
    from /home/rao/Documents/homir /config/environment.rb:13
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
    from /home/rao/Documents/homir /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /home/rao/Documents/homir /vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/rao/Documents/homir /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /home/rao/Documents/homir /vendor/rails/railties/lib/commands/servers/webrick.rb:59
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
    from /home/rao/Documents/homir /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /home/rao/Documents/homir /vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/rao/Documents/homir /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /home/rao/Documents/homir /vendor/rails/railties/lib/commands/server.rb:49
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
    from script/server:3
4

1 に答える 1

0

このエラーは、prosgres を使用しているが、そのアダプターをインストールしていないことを示しています。

gem 'pg'gem ファイルを追加して実行するだけbundle installです。

于 2012-08-20T08:02:07.773 に答える