本文介绍了安装pylinkgrammar时丢失的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装时pylinkgrammar遇到错误:

 运行setup.py egg_info的包pylinkgrammar安装包收集:pylinkgrammar
  运行的setup.py安装pylinkgrammar
...
运行build_ext建设pylinkgrammar / _clinkgrammar'延伸swigging pylinkgrammar / link_grammar.i到pylinkgrammar / link_grammar_wrap.c痛饮-python -o pylinkgrammar / link_grammar_wrap.c pylinkgrammar / link_grammar.iGCC -pthread -fno严格走样-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict的原型-fPIC -I / usr / include目录/ python2.7 -c pylinkgrammar / link_grammar_wrap.c -o建立/ temp.linux- x86_64-2.7 / pylinkgrammar / link_grammar_wrap.opylinkgrammar / link_grammar_wrap.c:2973:40:致命错误:链接语法/链路INCLUDES.H:没有这样的文件或目录编译终止。错误:命令'GCC'失败,退出状态1


解决方案

另外安装liblink-grammar4包还安装liblink-grammar4-dev软件包这是突触可用。

我一直在努力解决同样的一个多小时,它为我工作

http://pypi.python.org/pypi/pylinkgrammar

I am encountering an error when attempting to install pylinkgrammar:

Running setup.py egg_info for package pylinkgrammar

Installing collected packages: pylinkgrammar
  Running setup.py install for pylinkgrammar
...
running build_ext

building 'pylinkgrammar/_clinkgrammar' extension

swigging pylinkgrammar/link_grammar.i to pylinkgrammar/link_grammar_wrap.c

swig -python -o pylinkgrammar/link_grammar_wrap.c pylinkgrammar/link_grammar.i

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c pylinkgrammar/link_grammar_wrap.c -o build/temp.linux-x86_64-2.7/pylinkgrammar/link_grammar_wrap.o

pylinkgrammar/link_grammar_wrap.c:2973:40: fatal error: link-grammar/link-includes.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1
解决方案

Besides installing the liblink-grammar4 package also install liblink-grammar4-dev package which is available in synaptic.

I had been grappling with the same for over an hour and it worked for me

这篇关于安装pylinkgrammar时丢失的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 17:27