Hi, Im new to both Ruby and Rails, though am impressed by both. I am however stuck on a problem, when trying to run a demo. I''ve setup a postgresql database with a cookbook demo as per OnLamp, returned is the following error message: LoadError in Recipe#new No such file to load -- postgres script/server:48 Has anyone come across this error before? Anyone know how I should go about fixing this? Rds & Thanks in advance, Mike Lewis .... top of stack trace .... /home/milewis/sparc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' /home/milewis/sparc/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' /vendor/activesupport/lib/active_support/dependencies.rb:197:in `require'' /vendor/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:10:in `require_library_or_gem'' /vendor/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:20:in `postgresql_connection'' /vendor/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `send'' /vendor/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:136:in `connection='' /vendor/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:100:in `retrieve_connection'' /vendor/activerecord/lib/active_record/base.rb:222:in `connection''
Doh!!! Great, thanks for your help.> * mike-1VQMlerLD/jR7s880joybQ@public.gmane.org <mike-1VQMlerLD/jR7s880joybQ@public.gmane.org> [0340 14:40]: >> Hi, >> >> Im new to both Ruby and Rails, though am impressed by both. I am however >> stuck on a problem, when trying to run a demo. I''ve setup a postgresql >> database with a cookbook demo as per OnLamp, returned is the following >> error message: >> >> >> LoadError in Recipe#new >> No such file to load -- postgres >> >> script/server:48 >> >> Has anyone come across this error before? Anyone know how I should go >> about fixing this? > > You need to install a postgres library for ruby. > It may or may not be a pain depending on your os - > > gem install postgres-pr > > should sort you out. > > > -- > ''common sense is what tells you that the world is flat.'' > -- Principia Discordia > Rasputin :: Jack of All Trades - Master of Nuns > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
* mike-1VQMlerLD/jR7s880joybQ@public.gmane.org <mike-1VQMlerLD/jR7s880joybQ@public.gmane.org> [0340 14:40]:> Hi, > > Im new to both Ruby and Rails, though am impressed by both. I am however > stuck on a problem, when trying to run a demo. I''ve setup a postgresql > database with a cookbook demo as per OnLamp, returned is the following > error message: > > > LoadError in Recipe#new > No such file to load -- postgres > > script/server:48 > > Has anyone come across this error before? Anyone know how I should go > about fixing this?You need to install a postgres library for ruby. It may or may not be a pain depending on your os - gem install postgres-pr should sort you out. -- ''common sense is what tells you that the world is flat.'' -- Principia Discordia Rasputin :: Jack of All Trades - Master of Nuns