Just installed PostgresQL 8.0.3 on a Windows box with rubyonrails. When I run the scaffold generator, I get this missing source file error. This is my first attempt at using PostGresSQL with RoR. c:/apps/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' : No such file to load -- postgres (MissingSourceFile) from c:/apps/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:i n `require'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_ support/dependencies.rb:200:in `require'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_ record/connection_adapters/abstract_adapter.rb:10:in `require_library_or_gem'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_ record/connection_adapters/postgresql_adapter.rb:20:in `postgresql_connection'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_ record/query_cache.rb:52:in `send'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_ record/query_cache.rb:52:in `connection='' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_ record/connection_adapters/abstract_adapter.rb:108:in `retrieve_connection'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_ record/base.rb:239:in `connection'' ... 15 levels... from c:/apps/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/rails_generato r/manifest.rb:31:in `replay'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/rails_generato r/commands.rb:41:in `invoke!'' from c:/apps/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/rails_generato r/scripts/../scripts.rb:31:in `run'' from script/generate:7 ----- This is my database.yml setup: development: adapter: postgresql database: test host: localhost username: larry ... -- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
This may sound stupid, but have you installed the postgres adapter? I use the pure Ruby implementation for development - apparently it''s a bit slower, but there''s no trouble configuring it. # gem install postgres-pr For my production machine I installed the postgres adapter from ports (I''m using FreeBSD): # cd /usr/ports/databases/ruby-postgres # make install clean That will differ based on your system...you might be able to get away with a simple # gem install postgres Pat On 8/18/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Just installed PostgresQL 8.0.3 on a Windows box with rubyonrails. When I > run the scaffold generator, I get this missing source file error. This is > my first attempt at using PostGresSQL with RoR. > > c:/apps/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > : No such file to load -- postgres (MissingSourceFile) > ----- > This is my database.yml setup: > > development: > adapter: postgresql > database: test > host: localhost > username: larry > ... > > > > -- > Best Regards, > -Larry > "Work, work, work...there is no satisfactory alternative." > --- E.Taft Benson > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
On 8/18/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Just installed PostgresQL 8.0.3 on a Windows box with rubyonrails. When I > run the scaffold generator, I get this missing source file error. This is > my first attempt at using PostGresSQL with RoR.Try: gem install postgres-pr -- Bob Aman
Thanks. I''m up and running now. Comments below. -L On 8/18/05, Pat Maddox <pergesu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > This may sound stupid, but have you installed the postgres adapter?Not stupid at all. I thought that the one-click-installer for Windows included the Postgres adapter, apparently not. I use the pure Ruby implementation for development - apparently it''s a> bit slower, but there''s no trouble configuring it. > # gem install postgres-prWorks like a charm!. I LOVE gems! Seems fast enough for development work. For my production machine I installed the postgres adapter from ports> (I''m using FreeBSD): > # cd /usr/ports/databases/ruby-postgres > # make install clean > > That will differ based on your system...you might be able to get away > with a simple > # gem install postgresFails to install: It''s looking for Cygwin files, and Postgres 8.0 is Win32 Native code now. :) Pat> > > On 8/18/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Just installed PostgresQL 8.0.3 on a Windows box with rubyonrails. When > I > > run the scaffold generator, I get this missing source file error. This > is > > my first attempt at using PostGresSQL with RoR. > > > > c:/apps/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > > `require__'' > > : No such file to load -- postgres (MissingSourceFile) > > ----- > > This is my database.yml setup: > > > > development: > > adapter: postgresql > > database: test > > host: localhost > > username: larry > > ... > > > > > > > > -- > > Best Regards, > > -Larry > > "Work, work, work...there is no satisfactory alternative." > > --- E.Taft Benson > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails