当我尝试从源代码构建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来修复我的问题,虽然我不知道为什么这解决了这个问题。为什么会这样?
答案 0 :(得分:1)
正如您所说,我将库从OpenBLAS
移到
/usr/lib64
成功了。但是我还必须添加参数--with-blas="-lopenblas"
才能运行
./configure
答案 1 :(得分:0)
问题是OpenBLAS位于/ usr / lib下,而不是/ usr / lib64。这导致了动态链接问题。