【发布时间】:2018-09-05 00:14:22
【问题描述】:
我应该如何在 CentOS 7 中修复这个错误?
[jalal@goku c++]$ make
[ 25%] Linking CXX executable TestSVM
/usr/bin/ld: cannot find -lclapack
collect2: error: ld returned 1 exit status
make[2]: *** [TestSVM] Error 1
make[1]: *** [CMakeFiles/TestSVM.dir/all] Error 2
make: *** [all] Error 2
我有:
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core
这是我正在使用的存储库: https://github.com/sausax/pose_estimation/issues/1 https://github.com/sausax/pose_estimation
【问题讨论】:
-
你认为我们为什么会知道你的这个库安装在哪里?
-
您得到的错误是 C/C++ 编译器找不到给定库的情况下的一般错误,在这种情况下,“clapack”是 lapack 的 C 包装器。试试:
yum install atlas atlas-devel lapack-devel blas-devel