Re: Mongrel install problem

(apologies for double-posting this. I just realised that the original
had the digest title, and thus broke the thread.)

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:ineach’
from /usr/lib/ruby/1.8/rubygems/source_index.rb:185:in search' from /usr/lib/ruby/1.8/rubygems/source_index.rb:165:infind_name’
from /usr/lib/ruby/1.8/rubygems.rb:195:in activate' from /usr/lib/ruby/1.8/rubygems.rb:65:inactive_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:inrequire’
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:inrequire’
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.

Ruby version is not up-to-date; loading cgi_multipart_eof_fix

It seems the version of ruby you’re using needs to be updated. If
you’re installing from a package, and not from source, you may be at
the mercy of the maintainers to update.

Rob -

Do you have the gem “cgi_multipart_eof_fix” installed? Try the
following and see what is returned:

gem list --local | grep cgi_multipart

Did you install rubygems from apt or did you use something else?

  • sob