Thinking_sphinx indexing problem on production

Hello,
I have been using Sphinx with Thinking_sphinx plugin which works well on
local development environment, but once I move it to production (shared
host) I get this error and I’m not sure why

[email protected] [~/public_html/linko/current/config]# rake
thinking_sphinx:index RAILS_ENV=production
(in /home/linkamed/public_html/linko/releases/20080924112647)
gcc: No such file or directory
rake aborted!
Expected
/home/linkamed/public_html/linko/releases/20080924112647/app/models/poll.rb
to define Poll

any ideas?

Thanks,

Tam

On Sep 24, 12:57 pm, Tam K. [email protected] wrote:

Hello,
I have been using Sphinx with Thinking_sphinx plugin which works well on
local development environment, but once I move it to production (shared
host) I get this error and I’m not sure why

Expected /home/linkamed/public_html/linko/releases/20080924112647/app/
models/poll.rb to define Poll
just means that something bad happened when loading poll. You’d get a
better error message if you ran script/console and typed in
Poll

Fred

Frederick C. wrote:

On Sep 24, 12:57�pm, Tam K. [email protected] wrote:

Hello,
I have been using Sphinx with Thinking_sphinx plugin which works well on
local development environment, but once I move it to production (shared
host) I get this error and I’m not sure why

Expected /home/linkamed/public_html/linko/releases/20080924112647/app/
models/poll.rb to define Poll
just means that something bad happened when loading poll. You’d get a
better error message if you ran script/console and typed in
Poll

Fred

Thanks Fred, that was the right thing to do and I realized that the
problem is from plugin (validate_date_time)!:

Poll
NoMethodError: undefined method validates_date' for #<Class:0xb78a1da0> from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:264:in retrieve_connection’
from
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1063:in table_exists?’
from
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1153:in
inspect' from /usr/lib/ruby/1.8/irb.rb:154:in to_str’
from /usr/lib/ruby/1.8/irb.rb:154:in to_s' from /usr/lib/ruby/1.8/irb.rb:154:in write’
from /usr/lib/ruby/1.8/irb.rb:154:in print' from /usr/lib/ruby/1.8/irb.rb:154:in eval_input’
from /usr/lib/ruby/1.8/irb.rb:259:in signal_status' from /usr/lib/ruby/1.8/irb.rb:147:in eval_input’
from /usr/lib/ruby/1.8/irb.rb:146:in eval_input' from /usr/lib/ruby/1.8/irb.rb:70:in start’
from /usr/lib/ruby/1.8/irb.rb:69:in catch' from /usr/lib/ruby/1.8/irb.rb:69:in start’
from /usr/bin/irb:13

not sure why production is giving this error though! I tried on local
host and it worked! Any ideas? maybe I should post new thread for this
issue