gsl 库:未找到但已安装 gslcblas 库

gsl 库:未找到但已安装 gslcblas 库

我在安装 gsl 包时遇到问题。运行 Xubuntu 18.04、octave 4.4.1。

使用 -forge 时,安装过程会停止并显示以下消息:

 pkg install -forge gsl
 configure: error: gslcblas library not found

我已经通过 synaptic 安装:libgslcblas0,,libgsl-devlibgsl23

有人能指示我现在该做什么吗?

我昨天在 Octave 邮件列表上问了这个问题,但只得到了安装的答案gslclbas,而该答案已经安装好了。

编辑:感谢 N0rbert 的建议,但很抱歉安装建议liboctave-dev对我没有用。

我得到:

pkg install -forge gsl
configure: error: gslcblas library not found
checking for mkoctfile... /app/bin/mkoctfile-4.4.1
checking for octave... /app/bin/octave-4.4.1
checking for Octave's canonical_host_type... x86_64-pc-linux-gnu
checking for Octave's include directory... /app/include/octave-4.4.1/octave
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ov-scalar.h usability... yes
checking ov-scalar.h presence... yes
checking for ov-scalar.h... yes
checking for cos in -lm... yes
checking for cblas_dgemm in -lgslcblas... no
pkg: error running the configure script for gsl.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 437 column 9

还有其他想法吗?

我在另一台电脑上尝试使用 Octave 4.2.2,结果相同。

答案1

您需要首先安装 Octave 开发包:

sudo apt-get install liboctave-dev

使用来自官方 Ubuntu 存储库的标准 Octave 4.2.2 可以成功安装内部gsl包。

>> pkg load gsl
>> gsl_sf_sinc(0)
ans =  1

供您参考:Ubuntu 提供octave-gsl软件包版本 2.1.0-3,而 Octave Forge 提供版本 2.1.1-新闻文件包含注释:

===============================================================================  
gsl-2.1.1  
===============================================================================  

** Octave 4.4 compatibility fixes (remove deprecation warnings)  

因此您可以从存储库中使用 Octave。

相关内容