mkusner / wmd

Word Mover's Distance from Matthew J Kusner's paper "From Word Embeddings to Document Distances"
537 stars 132 forks source link

Makefile:39: recipe for target '_emd.so' failed #1

Open peimanb opened 8 years ago

peimanb commented 8 years ago

Interesting topic and paper. I tried to compile the makefile on Ubuntu (15.04) using Python 2.7, including all of the required libraries, but there is an error that I could not solve it, here is the output of running make: wmd- error page

I would be thankful if you can help me to solve this. Thanks.

felixsmueller commented 8 years ago

Hi If you change in the Makefile the following line from CFLAGS = -fPIC to CFLAGS = -fPIC -fno-stack-protector Then the error went away in my case. Regards, Felix PS: I needed to install swig in addition (which was not mentioned in the dependencies) using: sudo apt-get install swig