Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing file when installing pylinkgrammar

Tags:

python

c

gcc

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
like image 737
LO_pz Avatar asked Feb 02 '13 05:02

LO_pz


2 Answers

This worked for me:

sudo apt-get install liblink-grammar4-dev
like image 125
Mathieu Rodic Avatar answered Nov 03 '22 10:11

Mathieu Rodic


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

like image 21
Sankalp Avatar answered Nov 03 '22 11:11

Sankalp