windows上的aspell dict make:iso88591.cset无法打开进行读取

2024-06-08 22:09:28 发布

您现在位置:Python中文网/ 问答频道 /正文

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

我现在尝试的是使用来自http://gnu.c3sl.ufpr.br/ftp/aspell/dict/en/的en dict执行./configure、make和makeinstall。在

.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

我已经检查了这个文件(iso-8859-1.cset)的权限,停用了防病毒程序,用管理权限执行了msys,但没有解决问题。 文件可以在任何文本编辑器中正确打开。在

此任务的系统配置是: Windows 8.1 x64; Mingw-64+MSYS; 阿斯佩尔0.60

有人能帮我吗?在

谢谢。在


Tags: makebinconfigureisoerrorcommonexedict
1条回答
网友
1楼 · 发布于 2024-06-08 22:09:28

这可能与如何编译aspell有关。在

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

我使用的配置是:

$ ./configure  disable-shared  enable-static  enable-win32-relocatable

当我第一次编译aspell时,我遇到了编译错误:

^{pr2}$

所以我遵循了这个指南here(我猜你可能也这么做了)来绕过这个错误。在

所有编译过的和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设置为./

但它不应该是那样的,所以我查阅了档案_实用程序.cpp发现我跳过的代码与路径处理有关。后来我发现这个Japanese article指出asc_isalpha是在asc中定义的_泰奥水电站. 所以我补充说

#include "asc_ctype.hpp"

归档_实用程序.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问题。在

参考文献:

http://lists.gnu.org/archive/html/aspell-user/2007-10/msg00008.html
http://mikanya.dip.jp/memo/2007-09-07-1
https://www.mail-archive.com/aspell-user%40gnu.org/msg02226.html
http://osdir.com/ml/general/2014-12/msg10031.html

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

相关问题 更多 >