Compiling Facebook's StarSpace with Conda Boost
Recently, I was playing around with Facebookâs StarSpace, a general-purpose neural model for efficient learning of entity embeddings for solving a wide variety of problems. According to the installation instructions, you need a C++11 compiler and the Boost library. I already had GCC installed and Boost was only a quick conda command away:
The StarSpace Makefile is hardcoded to look for the Boost library in /usr/local/bin/boost_1_63_0/, which is a problem. But how should I modify the StarSpace Makefile so that it knew where to include the Boost library? After a little digging, I found the Boost files in /path/to/anaconda/include
. So, all I had to do was modify the following line in the StarSpace Makefile:
Executed make
on the command line and everything compiled nicely! Yay!