linux ultrasphinx Anonymous modules have no name to be referenced by




linux ultrasphinx Anonymous modules have no name to be referenced by

2022-07-20 21:06:44 网络知识 官方管理员
今天在Linux上安装好ultrasphinx后,打算跑一下rakeultrasphinx:configure生成配置文件.
结果运行期间出现提示Anonymousmoduleshavenonametobereferencedby
根据rake--trace提示,找到了出错的地方,修改了一下,便可以运行了
Iwasabletofixtheproblembychangingthelastcallinthe
load_constantsmethodfrom
#Buildthefield-to-typemappings.
Fields.instance.configure(MODEL_CONFIGURATION)
to
#Buildthefield-to-typemappings.
Ultrasphinx::Fields.instance.configure(MODEL_CONFIGURATION)

发表评论:

最近发表
网站分类
标签列表