【问题标题】:Installing Text::Aspell on windows XP在 Windows XP 上安装 Text::Aspell
【发布时间】:2012-12-27 16:29:07
【问题描述】:

我已经安装了 Aspell-0-50-3-3-Setup.exe 和字典 Aspell-en- 0.50-2-3.exe 来自http://aspell.net/win32/ 我已将此文件夹包含在我的 环境变量 PATH : C:\Program Files\Aspell\bin 但我仍然不能 安装文本::Aspell。我的 perl 版本是 ActivePerl 5.16.1 构建 1601。这些是我收到的错误消息:

    Checking if your kit is complete...
    Looks good
    Note (probably harmless): No library found for -laspell
    Aspell.xs:4:20: aspell.h: No such file or directory
    Aspell.xs:9: error: syntax error before "AspellCanHaveError"
    Aspell.xs:9: warning: no semicolon at end of struct or union
    Aspell.xs:10: warning: data definition has no type or storage class
    Aspell.xs:11: error: syntax error before '*' token
    Aspell.xs:11: warning: data definition has no type or storage class
    Aspell.xs:14: error: syntax error before '}' token
    Aspell.xs:14: warning: data definition has no type or storage class
    Aspell.xs:17: error: syntax error before '*' token
    Aspell.xs: In function `_create_speller':

    Writing Makefile for Text::Aspell
    Writing MYMETA.yml and MYMETA.json
    cp Aspell.pm blib\lib\Text\Aspell.pm
    C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -noprototypes -typemap
    C:\Perl\lib\ExtUtils\typemap -typemap typemap  Aspell.xs > Aspell.xsc && 
    C:\Perl\bin\perl.exe -MExtUtils::Command -e mv -- Aspell.xsc Aspell.c 
    C:\Perl\site\bin\gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT 
    DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -
    DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -DHASATTRIBUTE -fno-strict-
    aliasing -mms-bitfields -O2                        -DVERSION=\"0.09\"    -
    DXS_VERSION=\"0.09\"  "-IC:\Perl\lib\CORE"   Aspell.c
    [32m  HANK/Text-Aspell-0.09.tar.gz[0m
    [31m  C:\Perl\site\bin\dmake.exe -- NOT OK[0m
    [32mRunning make test 
    [32m  Can't test without successful make
    [32mRunning make install Make had returned bad status, install seems impossible
    [32mFailed during this command:
    HANK/Text-Aspell-0.09.tar.gz 
    : make NO
    [32m[0m

【问题讨论】:

    标签: perl spell-checking aspell


    【解决方案1】:

    你的问题是Note (probably harmless): No library found for -laspell

    来自http://cpansearch.perl.org/src/HANK/Text-Aspell-0.09/README的解决方案 就是告诉 Makefile.PL 在哪里可以找到 libaspell

    perl Makefile.PL CCFLAGS=-I$HOME/local/include     LIBS="-L$HOME/local/lib -laspell"
    

    您可以在ExtUtils::MakeMaker 中阅读有关CCFLAGS/LIBS 的信息,也可能还有一些教程:)

    【讨论】:

    • 这个“Makefile.pl”在哪里?
    猜你喜欢
    • 2011-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-06
    • 2012-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多