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
This worked for me:
sudo apt-get install liblink-grammar4-dev
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With