Trouble mith mongrel and ferret

Hi there,
i just got a new server and I’m having some trouble with the mongrel
server and the ferret gem.

The server is running debian etch. I installed ruby 1.8.5 with the dev
package, rails 1.2.3. I also installed the mongrel gem. But I not able
to start a mongrel server.

When I try to start the server he causes following error:

/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- http11 (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:11
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in
gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:inrequire’
from /var/lib/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:9
from /var/lib/gems/1.8/bin/mongrel_rails:18:in `load’
from /var/lib/gems/1.8/bin/mongrel_rails:18

Also there is a problem with the ferret gem. I installed it without
errors. But when I put the acts_as_ferret plugin in the plugin folder
rake doesn’t work anymore. I think that the server won’t start either…
but I have tis problem with mongrel I told you before. With the
acts_as_ferret plugin intalled if I run, for example, rake db:migrate
–trace I get following

rake aborted!
no such file to load – ferret_ext
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/home/remington/xopnp/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:147:in
require' /var/lib/gems/1.8/gems/ferret-0.11.4/lib/ferret.rb:25 /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:ingem_original_require’
/usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in require' /home/remington/xopnp/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:inrequire’
/home/remington/xopnp/config/…/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:24
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/home/remington/xopnp/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:147:in
require' /home/remington/xopnp/config/../vendor/plugins/acts_as_ferret/init.rb:21:inload_plugin’
/home/remington/xopnp/config/…/vendor/rails/railties/lib/initializer.rb:348:in
load_plugin' /home/remington/xopnp/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings’
/home/remington/xopnp/config/…/vendor/rails/railties/lib/initializer.rb:348:in
load_plugin' /home/remington/xopnp/config/../vendor/rails/railties/lib/initializer.rb:158:inload_plugins’
/home/remington/xopnp/config/…/vendor/rails/railties/lib/initializer.rb:158:in
each' /home/remington/xopnp/config/../vendor/rails/railties/lib/initializer.rb:158:inload_plugins’
/home/remington/xopnp/config/…/vendor/rails/railties/lib/initializer.rb:102:in
process' /home/remington/xopnp/config/../vendor/rails/railties/lib/initializer.rb:42:insend’
/home/remington/xopnp/config/…/vendor/rails/railties/lib/initializer.rb:42:in
run' /home/remington/xopnp/config/../config/environment.rb:13 /home/remington/xopnp/config/../vendor/rails/railties/lib/tasks/misc.rake:3:inrequire’
/home/remington/xopnp/config/…/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/1.8/rake.rb:387:in call' /usr/lib/ruby/1.8/rake.rb:387:inexecute’
/usr/lib/ruby/1.8/rake.rb:387:in each' /usr/lib/ruby/1.8/rake.rb:387:inexecute’
/usr/lib/ruby/1.8/rake.rb:357:in invoke' /usr/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/lib/ruby/1.8/rake.rb:350:in invoke' /usr/lib/ruby/1.8/rake.rb:364:ininvoke_prerequisites’
/usr/lib/ruby/1.8/rake.rb:999:in each' /usr/lib/ruby/1.8/rake.rb:999:insend’
/usr/lib/ruby/1.8/rake.rb:999:in each' /usr/lib/ruby/1.8/rake.rb:363:ininvoke_prerequisites’
/usr/lib/ruby/1.8/rake.rb:356:in invoke' /usr/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/lib/ruby/1.8/rake.rb:350:in invoke' /usr/lib/ruby/1.8/rake.rb:1906:inrun’
/usr/lib/ruby/1.8/rake.rb:1906:in each' /usr/lib/ruby/1.8/rake.rb:1906:inrun’
/usr/bin/rake:4

I already tried to search for a solution, but I didn’t find anything.

I would apreciate your help. Thanks.

There is another thing about the ruby/rails configuration. I don’t have
super user rights, because we share this server between some people and
I’m not the one who adminstrates it. I tried to boot a Webrick server
but I don’t have permissions for that. Any tip how to set this up?

It’s the first time I deploy rails on a webhost. I already done It on my
local pc wich runs windows, didn’t get any trouble with it.

On 10/4/07, Remigi I. [email protected] wrote:

/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require’: no such file to load – http11 (LoadError)

This is the important part: you’re missing the compiled extension.

That means that ‘gem install mongrel’ yell at you with some error
about compiling the extension (and to check some log file) and you
just ignored it :stuck_out_tongue:

Try reinstallation (uninstall and later install) of mongrel gem and
see if the extension gets compiled.

If not, you should recheck you have build-essential and ruby-dev
dependencies installed (apt-get install?).

HTH,


Luis L.
Multimedia systems

Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

I heard a lot of good things about:

ferret vs. sphinx is like
apache vs. nginx

try it