Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically correct Lingua::LinkParser include lib path

I'm building a script that will run on an EC2 instance that will automatically install our required packages and modules. I'm having an issue with Perl module Lingua::LinkParser. During compile it complains

LinkParser.xs:5:27: error: link-includes.h: No such file or directory

On Ubuntu link-includes.h is provided by package link-grammar and is installed in /usr/include/link-grammar/. However Lingua::LinkParser's Makefile.PL is hard-coded(?) to look in /usr/local/include/link-grammar/.

Is there simple-ish way to resolve this issue?

like image 592
Mxx Avatar asked Dec 04 '25 18:12

Mxx


2 Answers

Distroprefs

  • Best practice for using slightly modifying module from CPAN?
  • Install Perl modules that require customized options via CPAN
like image 53
daxim Avatar answered Dec 06 '25 07:12

daxim


mob's suggestion above to just symlink /usr/include/link-grammar to /usr/local/include/link-grammar is the simplest way of handling this situation and this is what I'll use.

like image 28
Mxx Avatar answered Dec 06 '25 07:12

Mxx