今天在Linux上安裝好ultrasphinx后, 打算跑一下rake ultrasphinx:configure生成配置文件. 結(jié)果運(yùn)行期間出現(xiàn)提示 Anonymous modules have no name to be referenced by 根據(jù)rake --trace 提示,找到了出錯(cuò)的地方,修改了一下,便可以運(yùn)行了 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)