Ruby Forum Ruby on Rails > ultrasphinx: Anonymous modules have no name to be referenced by

Posted by blinking bear (Guest)
on 20.03.2008 15:03
(Received via mailing list)
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
Posted by Alex Gregianin (Guest)
on 01.04.2008 15:30
(Received via mailing list)
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!
Posted by Chris Douglas (dougo_chris)
on 11.04.2008 09:12
(Received via mailing list)
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
Posted by Lenart Rudel (lenart)
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