“ ld:找不到用于-lblacsF77init的库”

时间:2018-07-03 20:56:14

标签: makefile mpi scalapack

我正在尝试在Macbook上使用mpi编译代码,但出现以下错误: “ ld:找不到-lblacsF77init的库”。我不知道在哪里可以找到该库以及如何创建正确的路径。

这是makefile:#串行Fortran编译器程序

    F90 = gfortran -I/usr/local/include
       # parallel Fortran compiler program
       MPIF90 = /usr/local/bin/mpif90.
       # Compiler flags
       F90FLAGS =
       CFLAGS = -x f95-cpp-input.
       # LDFLAGS are the linker flags
       LDFLAGS = -L/usr/local/lib
       F77LIBS =.
       MATLIB = -framework Accelerate
       hsl = /usr/local/opt/scalapack/
       hb = /usr/local/opt/openblas/
       hompi = /usr/local/lib/openmpi/
       MPIMATLIB = -L$(hb) -L$(hsl) -lscalapack -L$(hsl) -lblacsF77init -
lblacs -lblacsF77init -L$(hompi) -Wl,-framework,vecLib

非常感谢您提供的任何帮助。

1 个答案:

答案 0 :(得分:0)

如果您使用的是运行OSX的Macbook,则无需构建scalapack:

brew install scalapack gcc