Kitt-AI / snowboy

Future versions with model training module will be maintained through a forked version here: https://github.com/seasalt-ai/snowboy
Other
3.11k stars 1k forks source link

Installing the python packages without ATLAS #678

Open moritzschaefer opened 4 years ago

moritzschaefer commented 4 years ago

I'm trying to build a snowboy python-package for Nix but am struggling with the ATLAS library, which is not available and rather complicated to package in Nix.

Is there a way to install the python package (the one that's also hosted on PyPi) with OpenBLAS only? This is the error I get (because of the missing ATLAS libraries):


g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x  -shared snowboy-detect-swig.o \
../..//lib/ubuntu64/libsnowboy-detect.a  -L/nix/store/pnbwiawjxgr5piydrjbxww47jl3vj374-python3-3.7.6/lib -lpython3.7m -lpthread -ldl -lcrypt -lncurses -lutil -lm  -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
/nix/store/3p2l3g3fiq9p86izdclxks4wcqafr6ns-binutils-2.31.1/bin/ld: cannot find -lf77blas
/nix/store/3p2l3g3fiq9p86izdclxks4wcqafr6ns-binutils-2.31.1/bin/ld: cannot find -llapack_atlas
/nix/store/3p2l3g3fiq9p86izdclxks4wcqafr6ns-binutils-2.31.1/bin/ld: cannot find -latlas