3

当我尝试从源代码构建 Octave(使用 OpenBLAS 优化的 BLAS 和 LAPACK 库)时,我遇到了来自 ./configure 的以下错误:

checking for sgemm_ in /usr/lib/libopenblas_sandybridgep-r0.2.8.so... yes
checking whether LSAME is called correctly from Fortran... yes
checking whether ISAMAX is called correctly from Fortran... yes
checking whether SDOT is called correctly from Fortran... no
checking whether DDOT is called correctly from Fortran... yes
checking whether CDOTU is called correctly from Fortran... no
checking whether ZDOTU is called correctly from Fortran... no
checking whether the integer size is correct... no
checking for sgemm_ in /usr/lib/libopenblas_sandybridgep-r0.2.8.so... yes
checking whether LSAME is called correctly from Fortran... yes
checking whether ISAMAX is called correctly from Fortran... yes
checking whether SDOT is called correctly from Fortran... no
checking whether DDOT is called correctly from Fortran... yes
checking whether CDOTU is called correctly from Fortran... no
checking whether ZDOTU is called correctly from Fortran... no
checking whether the integer size is correct... no
configure: error: A BLAS library was detected but found incompatible with your Fortran 77    compiler settings.

编辑:我设法通过将 OpenBLAS 文件从 /usr/lib 移动到 /usr/lib64 来解决我的问题,但我不确定为什么这会解决问题。为什么这样做?

4

2 回答 2

2

正如你所说,我将库从移动OpenBLAS

/usr/lib64 

它奏效了。但我还必须添加参数--with-blas="-lopenblas"才能运行

./configure
于 2018-09-12T19:23:40.937 回答
0

问题是 OpenBLAS 在 /usr/lib 下而不是 /usr/lib64 下。这导致了动态链接问题。

于 2013-11-19T17:44:30.083 回答