Hallo,
ich wollte rails ausprobieren/lernen. Leider hänge ich noch beim einrichten der IDE.
Ich habe ruby installiert und das wovon ich gedacht/gelesen habe, dass ich es noch brauche. (div. gems z.b.)
Als IDE habe ich mir NetBeans ausgesucht. Nun habe ich ein Problem bei dem ich bei google zwar viel finde aber bisher keine Lösung habe.
Beim Start der Server bekomme ich immer einen Fehler.
Hier ist die Ausgabe beim Versuch Mongrel zu starten:
** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting /home/foobar/NetBeansProjects/cms/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:232:in `establish_connection': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- pg) (RuntimeError) from /home/foobar/NetBeansProjects/cms/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:216:in `establish_connection' from /home/foobar/NetBeansProjects/cms/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:209:in `establish_connection' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:332:in `initialize_database' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:120:in `process' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in `send' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in `run' from /home/foobar/NetBeansProjects/cms/config/environment.rb:13 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails' from /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_' from /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in `call' from /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in `listener' from /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_' from /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `call' from /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `initialize' from /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new' from /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run' from /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' from /var/lib/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in `load' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in `load' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in `load' from /home/foobar/NetBeansProjects/cms/vendor/rails/railties/lib/commands/servers/mongrel.rb:64 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/railties/lib/commands/server.rb:39 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3
und hier beim Versuch WEBrick zu starten.
=> Booting WEBrick... /home/foobar/NetBeansProjects/cms/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:232:in `establish_connection': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- pg) (RuntimeError) from /home/foobar/NetBeansProjects/cms/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:216:in `establish_connection' from /home/foobar/NetBeansProjects/cms/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:209:in `establish_connection' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:332:in `initialize_database' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:120:in `process' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in `send' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in `run' from /home/foobar/NetBeansProjects/cms/config/environment.rb:13 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/railties/lib/commands/servers/webrick.rb:59 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in `new_constants_in' from /home/foobar/NetBeansProjects/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in `require' from /home/foobar/NetBeansProjects/cms/vendor/rails/railties/lib/commands/server.rb:39 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3
Ich habe alles per apt-get bzw die gems per NetBeans installiert, dass ich nichts falsch machen kann und die Software immer vom System geupdatet wird.
Hat jemand eine Idee woran das liegen kann oder wie ich das lösen kann.
Ich weiss nicht was noch für informationen gebraucht werden. Solltet ihr noch etwas wissen wollen, werde ich es baldmöglichst nachtragen.
Danke schonmal. Gruß,
MookiE