Memcache no servidor ubuntu lúcido e rubi 1.9.1

2

Estou tentando configurar um servidor memcache na configuração acima. Estou recebendo o seguinte erro:

/var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in 'load_missing_constant': uninitialized constant MemCache (NameError)
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in 'const_missing_with_dependencies'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in 'const_missing'
from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:18:in '<class:MemcacheQueueClient>'
from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:14:in '<module:Clients>'
from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:13:in '<module:Workling>'
from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:12:in '<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'block in require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in 'new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /root/voicegateway/vendor/plugins/workling/lib/workling/remote/runners/client_runner.rb:2:in '<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'block in require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in 'new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /root/voicegateway/vendor/plugins/workling/lib/workling/remote/runners/starling_runner.rb:1:in '<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'block in require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in 'new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /root/voicegateway/vendor/plugins/workling/lib/workling/remote.rb:3:in '<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in 'load'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in 'block in load_file'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in 'new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:379:in 'load_file'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:259:in 'require_or_load'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:425:in 'load_missing_constant'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in 'const_missing_with_dependencies'
from /root/voicegateway/config/environments/development.rb:20:in 'block in load_environment'
from /var/lib/gems/1.9.1/gems/rails-2.3.8/lib/initializer.rb:386:in 'eval'
from /var/lib/gems/1.9.1/gems/rails-2.3.8/lib/initializer.rb:386:in 'block in load_environment'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/kernel/reporting.rb:11:in 'silence_warnings'
from /var/lib/gems/1.9.1/gems/rails-2.3.8/lib/initializer.rb:379:in 'load_environment'
from /var/lib/gems/1.9.1/gems/rails-2.3.8/lib/initializer.rb:137:in 'process'
from /var/lib/gems/1.9.1/gems/rails-2.3.8/lib/initializer.rb:113:in 'run'
from /root/voicegateway/config/environment.rb:9:in '<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'block in require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in 'new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in 'require'
from /var/lib/gems/1.9.1/gems/rails-2.3.8/lib/commands/server.rb:84:in '<top (required)>'
from ./server:3:in 'require'
from ./server:3:in '<main>'

Mas o memcache-client 1.8.3 está na lista gem. Qual é o problema?

    
por Thiago 09.06.2010 / 00:15

1 resposta

1

No que diz respeito ao memcached, posso ajudar:

telnet localhost 11211
stats
quit

( quit ou exit eu sempre esqueço isso.)

Se isso não funcionar - é claro, substitua localhost pelo seu servidor de memcached real - no Ubuntu e no Debian, o simples apt-get install memached irá disponibilizá-lo. Desde que eu tenho absolutamente nenhuma idéia o que esta mensagem ruby significa que é apenas um palpite.

Além disso, tirei a liberdade da questão para que ela mencionasse o material do rubi.

    
por 19.06.2011 / 00:29