我正在尝试从github安装一个名为ASF MapReady的软件。但在运行第一步./configure --prefix=/usr/local时无法继续,如github的描述所示。我所犯的错误:
Configuring ASF Tools checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking for fopen in -lc... yes checking for main in -lm... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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 for unistd.h... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for cos in -lm... yes checking for cblas_dgemm in -lgslcblas... no checking for gsl_blas_dgemm in -lgsl... no checking for GSL... no checking for gsl_blas_dgemm in -lgsl... (cached) no configure: error: library gsl was not found
如何在Ubuntu18.10中安装此软件?
发布于 2019-12-22 18:54:48
看起来您正在从源代码编译ASF MapReady。他们的GitHub自述说:
先决条件: ASF工具依赖于您需要在系统上安装的许多库。在下面的列表中,一些列出的包将有额外的依赖项,您的包管理系统应该自动加入这些依赖项。在Debian 9/Ubuntu 16.04上,下列软件包是必要的:
这意味着您需要在编译MapReady之前安装所有这些包。
你会怎么做?如下所示:
$ sudo apt-get install gcc g++ bison flex libcunit1-dev libexif-dev libfftw3-dev libgdal-dev libgeotiff-dev libglade2-dev libglib2.0-dev libgsl-dev libgtk2.0-dev libjpeg-dev libpng-dev libproj-dev libshp-dev libtiff5-dev libxml2-dev发布于 2019-12-22 18:26:57
您的错误消息声明library gsl was not found。
确定要安装哪个库的一种方法是运行命令apt search gsl,然后查看结果,尝试并对需要安装的包进行合理的猜测。再次运行命令./configure --prefix=/usr/local,查看程序是否编译,或者是否缺少其他库。通常,您需要重复这个过程,直到编译最终成功。
幸运的是,该项目的开发人员(S)在他们的自述文件中提供了该工具所需的包依赖关系的详细列表。
在使用命令sudo apt install libgsl-dev安装了gsl之后,您将需要遍历自述文件中依赖列表的其余部分,并验证所有已命名的包确实存在于系统中。
https://askubuntu.com/questions/1197829
复制相似问题