Error building Python wrapper
eugeneyan opened this issue · 2 comments
eugeneyan commented
While trying to build the python wrapper, I come across the following error while running ./build.sh
.
Oddly though, building StarSpace (non-python) worked fine. Would any be able to direct me to how I could fix this?
In file included from /Users/eugeneyan/otms/Starspace/python/starspace_pybind.cc:1:
In file included from /Users/eugeneyan/otms/Starspace/python/../src/starspace.h:11:
/Users/eugeneyan/otms/Starspace/python/../src/dict.h:22:10: fatal error: 'boost/format.hpp' file not found
#include <boost/format.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/starwrap.dir/starspace_pybind.cc.o] Error 1
make[1]: *** [CMakeFiles/starwrap.dir/all] Error 2
make: *** [all] Error 2```
eugeneyan commented
Nvm, found the issue.
The build process must use boost 1.63
.
Had to run this snippet to fix this:
$wget https://dl.bintray.com/boostorg/release/1.63.0/source/boost_1_63_0.zip
$unzip boost_1_63_0.zip
$sudo mv boost_1_63_0 /usr/local/bin
espoirMur commented
Thanks @eugeneyan !
a quick improvement :
unzip -d /usr/local/bin boost_1_63_0.zip