Ultrasphinx: Anonymous modules have no name to be referenced by

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:inqualified_name_for’
vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:477:in
const_missing' vendor/plugins/ultrasphinx/lib/ultrasphinx/configure.rb:32:inload_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

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!

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

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 :slight_smile:

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