Thanks for the help Sean. I managed to get the install fixed, but I''m
still having problems. When I do mongrel_rails start, the process just
gets stuck and never completes. If I interrupt it I get the
following...
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
/usr/lib/ruby/1.8/rubygems/source_index.rb:186:in `search'': Interrupt
from /usr/lib/ruby/1.8/rubygems/source_index.rb:185:in `each''
from /usr/lib/ruby/1.8/rubygems/source_index.rb:185:in `search''
from /usr/lib/ruby/1.8/rubygems/source_index.rb:165:in
`find_name''
from /usr/lib/ruby/1.8/rubygems.rb:195:in `activate''
from /usr/lib/ruby/1.8/rubygems.rb:65:in
`active_gem_with_options''
from /usr/lib/ruby/1.8/rubygems.rb:49:in `gem''
from
/var/lib/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/gems.rb:12:in
`require''
from /var/lib/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel.rb:13
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`require''
from /var/lib/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:11
from /usr/bin/mongrel_rails:16:in `load''
from /usr/bin/mongrel_rails:16
... which indicates it is getting stuck in the block of this search method:
def search(gem_pattern,
version_requirement=Version::Requirement.new(">= 0"))
#FIXME - remove duplication between this and RemoteInstaller.search
gem_pattern = /^#{ gem_pattern }$/i if String === gem_pattern
version_requirement Gem::Version::Requirement.create(version_requirement)
result = []
@gems.each do |full_spec_name, spec|
next unless spec.name =~ gem_pattern
result << spec if version_requirement.satisfied_by?(spec.version)
end
result = result.sort
result
end
Any ideas why?
Thanks,
Rob.
> Date: Tue, 11 Dec 2007 09:31:34 -0800
> From: "Sean O''Brien" <sobrien at yahoo-inc.com>
> Subject: Re: [Mongrel] Mongrel install problem
> To: mongrel-users at rubyforge.org
> Message-ID: <570BBEFE-51FD-4635-A652-8B1D0FACE930 at yahoo-inc.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> I had the same issue on Etch, try adding
''/var/lib/gems/1.8/bin/'' to
> your path - see if that works.
>
> - sob
>
> On Dec 11, 2007, at 7:27 AM, rob lucas wrote:
>
> > Hi,
> >
> > I''m having difficulties getting mongrel running on my Debian
Etch
> > machine. It seems to install and is listed with my other gems, but
> > things like...
> > "mongrel_rails start ..."
> > ... are not recognised.
> >
> > Perhaps this is something to do with the file "lib" not
being found in
> > the install process:
> >
> > ruby extconf.rb install mongrel --include-dependencies
> > checking for main() in -lc... no
> > creating Makefile
> >
> > make
> >
> > make install
> >
> > make clean
> > Successfully installed mongrel-1.1.1
> > Successfully installed fastthread-1.0.1
> > Installing ri documentation for mongrel-1.1.1...
> > Installing ri documentation for fastthread-1.0.1...
> > File not found: lib
> >
> > I''ve done the usual Googling for solutions to this, but no
luck so
> > far. Any help would be appreciated.
> >
> > Thanks,
> >
> > Rob.