本文介绍了自动更正Lingua :: LinkParser包含lib路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个将在EC2实例上运行的脚本,该脚本将自动安装我们所需的软件包和模块.我在Perl模块Lingua::LinkParser上遇到问题.在编译过程中会抱怨

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

在Ubuntu上,link-includes.h由软件包link-grammar提供,并安装在/usr/include/link-grammar/中.但是Lingua :: LinkParser的Makefile.PL是经过硬编码的(?),可以在/usr/local/include/link-grammar/中查看.

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?

推荐答案

上面的暴民建议仅将/usr/include/link-grammar符号链接到/usr/local/include/link-grammar是处理这种情况的最简单方法这就是我要用的.

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.

这篇关于自动更正Lingua :: LinkParser包含lib路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:04