redbeard-tech/mongoid-sphinx — comment on commit 9a97ab3517222d6aaf611ce66c01c776868e0beb
File:  line 0
By sarmady:

I have a MongoDB, and i want to index it's records using Sphinx and Mongoid-sphinx as a driver, i found a plugin called mongoid-sphinx that supposed to do so, the problem is it always doing this for every model i want to index (running the command : rake mongoid_sphinx:index) :

indexing index 'branch_core'... /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mongoid-sphinx-0.1.3/lib/mongoid_sphinx/mongoid/sphinx.rb:8: warning: already initialized constant SPHINX_TYPE_MAPPING /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mongoid-sphinx-0.1.3/lib/mongoid_sphinx/mongoid/sphinx.rb:8: warning: already initialized constant SPHINX_TYPE_MAPPING /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mongoid-sphinx-0.1.3/lib/mongoid_sphinx/mongoid/sphinx.rb:8: warning: already initialized constant SPHINX_TYPE_MAPPING

WARNING: source 'branch_core_0': xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx

ERROR: index 'branch_core': failed to configure some of the sources, will not index. skipping non-plain index 'branch'...

My questions are :

why is the "already initialized constant SPHINX_TYPE_MAPPING" warning ?
I searched about the "xmlpipe2 support NOT compiled in" warning and i found this : http://sphinxsearch.com/forum/view.html?id=2859 i followed the steps, everytime the warning still popping up to me.
why the "ERROR: index" appears.

Any help would be appreciated.

Cheers,