Automatically correct Lingua::LinkParser include lib path

对着背影说爱祢 提交于 2020-01-13 13:45:25

问题


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?


回答1:


Distroprefs

  • Best practice for using slightly modifying module from CPAN?
  • Install Perl modules that require customized options via CPAN



回答2:


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.



来源:https://stackoverflow.com/questions/8233814/automatically-correct-lingualinkparser-include-lib-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!