自动更正Lingua :: LinkParser包含lib路径

编程入门 行业动态 更新时间:2024-10-25 01:26:08
本文介绍了自动更正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路径

本文发布于:2023-11-16 09:49:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603189.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   Lingua   LinkParser   lib

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!