Python windows上的aspell dict make:iso-8859-1.cset无法打开读取

Python windows上的aspell dict make:iso-8859-1.cset无法打开读取,python,windows,dictionary,mingw,aspell,Python,Windows,Dictionary,Mingw,Aspell,我已经在windows上编译了带有mingw64和msys的aspell,以便与enchant和pyenchant一起使用,但我仍然没有任何dicts:“aspell dump dicts”不返回任何内容 我现在尝试的是使用从中获得的命令进行./configure、make和make安装 .configure成功执行,但返回: /mingw/bin/prezip-bin.exe -d < en-common.cwl | /mingw/bin/aspell.exe --lang=en cr

我已经在windows上编译了带有mingw64和msys的aspell,以便与enchant和pyenchant一起使用,但我仍然没有任何dicts:“aspell dump dicts”不返回任何内容

我现在尝试的是使用从中获得的命令进行./configure、make和make安装

.configure成功执行,但返回:

/mingw/bin/prezip-bin.exe -d < en-common.cwl | /mingw/bin/aspell.exe  --lang=en create master ./en-common.rws
Error: The file "/mingw/lib/aspell-0.60/iso-8859-1.cset" can not be opened for reading.
Makefile:108: recipe for target `en-common.rws' failed
make: *** [en-common.rws] Error 1
/mingw/bin/prezip-bin.exe-d
我已经检查了此文件(iso-8859-1.cset)的权限,停用了防病毒,使用管理权限执行了msys,但没有解决问题。 文件将在任何文本编辑器中正确打开

此任务的系统配置为: windows8.1x64; Mingw-64+MSYS; 阿斯佩尔0.60

有人能帮我吗


谢谢。

这可能与您如何编译aspell有关

我已经在MSYS环境和GCC4.7.0(确切地说是mingw32-4.7.0-posix-dwarf-rev0)下的Windows7 x64下成功编译并运行了aspell 0.60.61和字典aspell6-en-7.1-0。我还没有解决它的所有问题,但我的发现是:

我使用的配置是:

$ ./configure --disable-shared --enable-static --enable-win32-relocatable
当我第一次编译aspell时,我遇到了编译错误:

common/file_util.cpp: In function 'bool acommon::need_dir(acommon::ParmString)':
common/file_util.cpp:49:32: error: 'asc_isalpha' was not declared in this scope
所以我遵循了这个指南(我想你可能也这么做了)来绕过这个错误

所有编译的东西和aspell都可以运行,但是它一直给我路径解析错误,包括你得到的错误,或者类似的东西

Error: The file "/usr/local/lib/aspell-0.60//usr/loc`enter code here`al/lib/aspell-0.60/en_US.multi" can not be opened for reading.
(我没有保留原始信息,但它是这样的) 我甚至尝试使用--data dir、--dict dir或--local data dir选项,但我唯一能让它工作的时间是在/usr/local/lib/aspell-0.60/文件夹中,并将--data dir设置为/

但它不应该是这样的,所以我回顾了文件_util.cpp,发现我跳过的代码与路径处理有关。后来我发现这一点,指出asc_isalpha是在asc_tyoe.hpp中定义的。所以我补充说

#include "asc_ctype.hpp"
将_util.cpp归档,然后重新编译aspell。然后我尝试编译aspell6-en-7.1-0,这次没有错误,字典编译成功

现在的问题是,默认情况下aspell仍然无法找到字典,它仍然会给出如下错误消息:

Error: No word lists can be found for the language "en_US".
即使默认情况下aspell具有正确的数据目录:

$ aspell config data-dir
/usr/local/lib/aspell-0.60
但至少--data dir选项现在起作用了,所以我可以像这样使用aspell:

$ aspell --data-dir=/usr/local/lib/aspell-0.60/ -c test.txt
希望您也能解决aspell问题

参考:




非常感谢这些文章/网页帮助我了解如何让aspell工作