crossthelimit has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am trying to install Lingua::LinkParser in Ubuntu but I keep getting 'Could not Make error'. I used "install Lingua::LinkParser" command in the cpan shell. Is there any better way to install it by downloading the module separately ? I have already compiled and installed link-grammar parser module required for this. Any insight on installation of this module will greatly help me.

Replies are listed 'Best First'.
Re: Installing Lingua::LinkParser
by Anonymous Monk on Apr 12, 2010 at 10:33 UTC
    From the cpan shell
    cpan>look Lingua::LinkParser
    or cpanp z Lingua::LinkParser. This will download Lingua::LinkParser, unpack it, cd to that directory and start a shell. Then you can run perl Makefile.PL manually...
      Hi, Thank you very much for the response. Now, I could get lots of error messages:
      AutoSplitting blib/lib/Lingua/LinkParser/Simple.pm (blib/lib/auto/Ling +ua/LinkParser/Simple) /usr/bin/perl /usr/local/share/perl/5.10.0/ExtUtils/xsubpp -typemap / +usr/share/perl/5.10/ExtUtils/typemap -typemap typemap LinkParser.xs +> LinkParser.xsc && mv LinkParser.xsc LinkParser.c Please specify prototyping behavior for LinkParser.xs (see perlxs manu +al) cc -c -I/home/aktest/link-4.1b/ -D_REENTRANT -D_GNU_SOURCE -DDEBIAN - +fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D +_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\ +" -fPIC "-I/usr/lib/perl/5.10/CORE" -DDICTIONARY_DIR=\".\" LinkParse +r.c LinkParser.xs:5:27: error: link-includes.h: No such file or directory LinkParser.c: In function ‘XS_Lingua__LinkParser_dictionary_create_lan +g’: LinkParser.c:124: error: ‘Dictionary’ undeclared (first use in this fu +nction) LinkParser.c:124: error: (Each undeclared identifier is reported only +once LinkParser.c:124: error: for each function it appears in.) .....
      I have searched for those errors and referred to incorrect link-grammar installations. I have installed link-grammar required for this module in /home/aktest/link-4.1b. Is there anything I am missing obvious ?
        The immediate problem is simply that link-includes.h can't be found.
        Where is that file located ? I'm guessing it's part of "the Link Parser package" referred to in the Readme. And it looks like that package is a C library that you need to first compile and install before Lingua::LinkParser can be built.

        Was there mention during the "perl Makefile.PL" stage of some libraries that could not be found ? (These would also probably be locatable once "the Link Parser package" has been installed. See the "Requirements" and "Installation" section of the above-mentioned Readme.)

        You'll need to either run 'make clean' or start from a freshly unpacked source before trying again to build Lingu::LinkParser.

        Cheers,
        Rob