I'm deploying an app to FreeBSD and when I run the ultrasphinx:configure rake task I get the output: Anonymous modules have no name to be referenced by vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:402:in `to_constant_name' vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:214:in `qualified_name_for' vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in `const_missing' vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:32:in `load_constants' vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:39:in `run' vendor/plugins/ultrasphinx/tasks/ultrasphinx.rake:20 I can't seem to figure out what the issue is. It works fine in development. Any ideas would be greatly appreciated. thanks
on 20.03.2008 15:03
on 01.04.2008 15:30
Wow! I've got the same problem and didnt find anything on google.it seems just a few people have this issue.May there's something to do with the sphinx lib version.What version are you using? 0.9.8rc2? Thankz!
on 11.04.2008 09:12
I have the same problem with sphinx-0.9.8-rc2
I was able to fix the problem by changing the last call in the
load_constants method from
# Build the field-to-type mappings.
Fields.instance.configure(MODEL_CONFIGURATION)
to
# Build the field-to-type mappings.
Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION)
Hope this helps
Chris
on 07.06.2008 10:24
Thanks Chris! It helped me with sphinx-0.9.8-rc2 on Windows (using cygwin). I was following these instructions for installing and needed your help :) http://www.cordinc.com/blog/2008/03/installing-sphinx-ultrasphinx.html Regards, Lenart Chris Douglas wrote: > I have the same problem with sphinx-0.9.8-rc2 > > I was able to fix the problem by changing the last call in the > load_constants method from > # Build the field-to-type mappings. > Fields.instance.configure(MODEL_CONFIGURATION) > to > # Build the field-to-type mappings. > Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION) > > Hope this helps > > Chris