3

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?

Mxx
  • 8,979
  • 4
  • 27
  • 37
  • 1
    I'd submit a bug to the module's author about the hardcoded path – frezik Nov 22 '11 at 21:16
  • Filing a bug is definitely a good thing, however I have no idea how long it will take for them to release a fix(if at all). I wouldn't want to delay this project so I'd like to find a solution that would work with the current package's state. – Mxx Nov 22 '11 at 21:34
  • 2
    Can't you just make a symbolic link from `/usr/include/link-grammar` to `/usr/local/include/link-grammar`? – mob Nov 22 '11 at 22:24

2 Answers2

2

Distroprefs

Community
  • 1
  • 1
daxim
  • 39,270
  • 4
  • 65
  • 132
  • Hmm, perhaps this is the most proper way of doing it, but (at least to me) seems pretty involved. I'll have to read up on this to see how feasible it is to do in our current setup and if that will allow me to override that hardcoded path – Mxx Nov 27 '11 at 22:38
1

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.

Mxx
  • 8,979
  • 4
  • 27
  • 37