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

Support for RHEL-bases systems #116

Open tb0hdan opened 7 years ago

tb0hdan commented 7 years ago

Snowboy is not usable on RHEL-bases systems (tested on Centos 7 x86_64), both binary form located at https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.1.0.tar.bz2 as well as github/swig one:

[vagrant@localhost Python]$ make

g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o

../..//lib/ubuntu64/libsnowboy-detect.a -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic

-lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so

/usr/bin/ld: cannot find -lf77blas

/usr/bin/ld: cannot find -lcblas

/usr/bin/ld: cannot find -llapack_atlas /usr/bin/ld: cannot find -latlas

collect2: error: ld returned 1 exit status

make: *** [_snowboydetect.so] Error 1

tb0hdan commented 7 years ago

Please note that Atlas is installed (including devel package)

tb0hdan commented 7 years ago

I've used following command to start Centos 7 box:

vagrant init centos/7; vagrant up --provider virtualbox

tb0hdan commented 7 years ago

There's similar issue: https://github.com/dmlc/mxnet/issues/1442

chenguoguo commented 7 years ago

We haven't worked on RHEL-based systems, so not sure why it's not able to load ATLAS. You could try to use OpenBLAS instead. Perhaps someone else with more knowledge can jump in?

hatleon commented 1 year ago

when I compile with make command in CentOS, errors occur.

g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o \ ../..//lib/ubuntu64/libsnowboy-detect.a -L/home/pcuser/anaconda3/lib/python3.10/config-3.10-x86_64-linux-gnu -L/home/pcuser/anaconda3/lib -lcrypt -lpthread -ldl -lutil -lm -lm -lm -ldl -lf77blas -lcblas -llapack -latlas -o _snowboydetect.so /usr/bin/ld: cannot find -lf77blas /usr/bin/ld: cannot find -lcblas /usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -latlas collect2: error: ld returned 1 exit status make: *** [Makefile:76: _snowboydetect.so] Error 1