I am encountering an error when attempting to install pylinkgrammar
on a Mac:
pylinkgrammar/link_grammar_wrap.c:2955:10: fatal error: 'link-grammar/link-includes.h' file not found
#include <link-grammar/link-includes.h>
1 error generated.
error: command 'cc' failed with exit status 1
The same problem is described here: Missing file when installing pylinkgrammar
But the solutions apply only for Ubuntu, since MacPorts does not have the packages liblink-grammar4
and liblink-grammar4-dev
.
Edit: I forgot to mention that I have installed link-grammar
using MacPorts. This error appears nonetheless.
It seems the MacPorts package doesn't include the development headers.
I was able to successfully build pylinkgrammar
against the link-grammar
package from homebrew
though:
Install homebrew
if you haven't already
brew install link-grammar
And then install pylinkgrammar
as usual.