1. 程式人生 > 實用技巧 >linux下更高階的查詢

linux下更高階的查詢

1、在安裝opencv4.5時,出現了錯誤:libopencv_core.so.4.5.0: undefined reference to `cblas_zgemm',想使用locate檢視下cblas_zgemm檔案,沒有locate命令

2、安裝locate工具:pacman -S mlocate,還是無法使用

3、更新資料庫:updatedb

4、locate cblas結果:

 1 /home/nication/WORKM/selfProgram/anaconda3/lib/python3.8/site-packages/torch/include/caffe2/utils/cblas.h
 2 /home/nication/WORKM/selfProgram/anaconda3/pkgs/pytorch-1.6
.0-py3.8_cuda10.2.89_cudnn7.6.5_0/lib/python3.8/site-packages/torch/include/caffe2/utils/cblas.h 3 /usr/include/cblas.h 4 /usr/include/cblas_f77.h 5 /usr/include/cblas_mangling.h 6 /usr/include/cblas_test.h 7 /usr/include/gsl/gsl_cblas.h 8 /usr/lib/libcblas.so 9 /usr/lib/libcblas.so.3 10 /usr/lib/libcblas.so.3.9.0 11 /usr/lib/libgslcblas.so
12 /usr/lib/libgslcblas.so.0 13 /usr/lib/libgslcblas.so.0.0.0 14 /usr/lib/cmake/cblas-3.9.0 15 /usr/lib/cmake/cblas-3.9.0/cblas-config-version.cmake 16 /usr/lib/cmake/cblas-3.9.0/cblas-config.cmake 17 /usr/lib/cmake/cblas-3.9.0/cblas-targets-release.cmake 18 /usr/lib/cmake/cblas-3.9.0/cblas-targets.cmake 19 /usr/lib/pkgconfig/cblas.pc

大功告成,OK,繼續解決opencv4的原始碼編譯問題