我正在构建一个将在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路径
发布评论