无法从源代码构建Octave

问题描述 投票:2回答:2

当我尝试从源代码构建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来修复我的问题,虽然我不知道为什么这解决了这个问题。为什么呢?

shared-libraries octave configure dynamic-linking blas
2个回答
1
投票

正如你所说,我把libs从OpenBLAS移到了

/usr/lib64 

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

./configure

0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.