Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
shiqiaodeng opened this issue Sep 23, 2019 · 2 comments
Closed

Comments

@shiqiaodeng
Copy link

shiqiaodeng commented Sep 23, 2019

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
Copy link
Collaborator

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
Copy link
Author

shiqiaodeng commented Sep 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants