On 7/3/06, Joe Van Dyk <joevandyk / gmail.com> wrote:
> On 7/3/06, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote:
> > On Tue, 4 Jul 2006, Joe Van Dyk wrote:
> >
> > > Hi,
> > >
> > > I've got Ruby 1.8.4 compiled and installed on a Ubuntu box.  I
> > > installed rubygems 0.8.11.  I then installed the postgres gem.
> > > Everything went ok.  Doing a "gem list postgres" shows the postgres
> > > gem.
> > >
> > > So, when I fire up irb and do
> > >
> > > irb(main):001:0> require 'rubygems'
> > > => true
> > > irb(main):002:0> require 'postgres'
> > > LoadError: no such file to load -- postgres
> > >       from
> > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> > > `require__'
> > >       from
> > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> > > `require'
> > >       from (irb):2
> > >
> > >
> > > That's not good.  Why???!
> > >
> > > Thanks,
> > > Joe
> >
> > do you have two instances of ruby installed?  perhaps /usr/bin/ruby and
> >    /usr/local/bin/ruby?
> >
> > if so you probably also have
> >
> >    /usr/bin/gem
> >
> > but only
> >
> >    /usr/local/bin/irb
>
> I did have the Ubuntu-installed Ruby installed at one point, but I
> removed it.  I thought I had removed all traces of it.  Maybe not.
> /usr/bin/ruby, /usr/bin/gem, and /usr/lib/ruby don't exist.

For some reason, downloading ruby-postgres-20060406.tar.gz and doing a
manual install worked, while installing with the gem did not.

Now, I've got to figure out why I'm getting:

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- test/rails
(MissingSourceFile)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from /home/joe/projects/tanga/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in
`require'
        from ./test/integration/../test_helper.rb:4
        from ./test/integration/layout_test.rb:1
        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5
        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5
rake aborted!


Whenever I try to run any unit tests...