Trying to build mxnet from source
Makefile:187: "USE_LAPACK disabled because libraries were not found" Makefile:313: WARNING: Significant performance increases can be achieved by installing and enabling gperftools or jemalloc development packages Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment v
Followed by multiple occurrences of
In file included from src/operator/contrib/adaptive_avg_pooling.cc:25: In file included from src/operator/contrib/adaptive_avg_pooling-inl.h:30: In file included from include/mxnet/operator.h:38: In file included from include/mxnet/./base.h:33: In file included from /Users/chaitanyabapat/workspace/incubator-mxnet/3rdparty/mshadow/mshadow/tensor.h:16: /Users/chaitanyabapat/workspace/incubator-mxnet/3rdparty/mshadow/mshadow/./base.h:162:14: fatal error: 'cblas.h' file not found #include <cblas.h> ^~~~~~~~~
Tried to resolve the blas issue -
By changing from apple to openblas
brew install openblas
Still the error persists
It looks like for some reason, brew install packages are not accesible.
That’s the reason why cblas as well as opencv errors are thrown
$ pkg-config --libs openblas Package openblas was not found in the pkg-config search path. Perhaps you should add the directory containing `openblas.pc' to the PKG_CONFIG_PATH environment variable No package 'openblas' found $ pkg-config --libs opencv Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found
Googling above error on stackoverflow gives me solution of
updating environment variable; that doesn’t work either
$ vi ~/.bashrc export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib $ source ~/.bashrc $ echo $PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/usr/local/lib
Out of options, please help.