DeepGraphLearning / graphvite

GraphVite: A General and High-performance Graph Embedding System
https://graphvite.io
Apache License 2.0
1.22k stars 151 forks source link

make error: An implementation of BLAS is required but none was found. #26

Closed shiqiaodeng closed 4 years ago

shiqiaodeng commented 4 years ago

hi!

When I was trying to install it from source I got error when make make

The error message is as follow:

checking for sgemm_ in -lmkl_intel_lp64... no
checking for sgemm_ in -lmkl... no
checking for sgemm_ in -lopenblas... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... no
checking for sgemm_ in -framework vecLib... no
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) no
checking for sgemm_ in -lblas... (cached) no
configure: error: An implementation of BLAS is required but none was found.
make[2]: *** [faiss/src/faiss-stamp/faiss-configure] Error 1
make[1]: *** [CMakeFiles/faiss.dir/all] Error 2
make: *** [all] Error 2

Any idea why this is happening? How can I get around this problem?

KiddoZhu commented 4 years ago

Duplicate of #17

It's because faiss can't find the dependency. I am not sure how to solve that, since I never meet this in my environment. A workaround is to comment out all faiss related lines in CMakeLists.txt, if you don't need to use the visualization. Otherwise please refer to the above issue.

shiqiaodeng commented 4 years ago

Thank for you reply!Please forgive me for being busy with other things and not replying to you. I have solved this problem according to your method. manually install OpenBLAS compile faiss from source compile graphvite with cmake .. -DFAISS_PATH=/path/to/faiss/ && make

But I have a new problem.When I was trying to install it from source I got error when executing python setup.py install I found that other people have encountered this problem.(#23) ImportError: /home/deng/project/graphvite-0.1.0/build/lib/libgraphvite.so: undefined symbol: _ZN3fLS13FLAGS_log_dirE Your suggestion is thart export the paths of gflags and glog into LD_LIBRARY_PATH. But I did not solve this problem according to your suggestion.

My configuration: Centos 7 python 3.7 conda install glog and gflags CUDA 10.0

I am looking forward to your reply!Thanks! @KiddoZhu