首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在windows XP上安装Text::Aspell

在windows XP上安装Text::Aspell
EN

Stack Overflow用户
提问于 2012-12-26 23:53:20
回答 1查看 773关注 0票数 0

我已经安装了Aspell-0-50-3-3-Setup.exe和来自http://aspell.net/win32/的字典Aspell-en- 0.50-2-3.exe我已经在我的环境变量PATH中包含了这个文件夹: C:\Program Files\Aspell\bin,但是我仍然无法安装Text::Aspell。我的perl版本是ActivePerl 5.16.1 build1601。以下是我收到的错误消息:

代码语言:javascript
复制
    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
EN

回答 1

Stack Overflow用户

发布于 2012-12-27 16:29:08

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

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

代码语言:javascript
复制
perl Makefile.PL CCFLAGS=-I$HOME/local/include     LIBS="-L$HOME/local/lib -laspell"

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14042888

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档