AxiSEM is a parallel spectral-element method to solve 3D wave propagation in a sphere with axisymmetric or spherically symmetric visco-elastic, acoustic, anisotropic structures.
66
stars
31
forks
source link
ld: library not found for -lnetcdf collect2: error: ld returned 1 exit status #54
I am very new to programming. I am trying to install AXISEM and it has a makefile that throws me the following error:
ld: library not found for -lnetcdf
collect2: error: ld returned 1 exit status
The part of code where the error is thrown is the following
ifeq ($(strip $(USE_NETCDF)),true)
FFLAGS += -Dunc
ifdef NETCDF_PATH
LIBS = -L $(strip $(NETCDF_PATH))/lib -lnetcdff -Wl,-rpath,$(strip $(NETCDF_PATH))/lib
INCLUDE = -I $(strip $(NETCDF_PATH))/include
else
LIBS = -lnetcdff
INCLUDE = -I /usr/include
endif
else
LIBS =
INCLUDE =
endif
I am very new to programming. I am trying to install AXISEM and it has a makefile that throws me the following error:
ld: library not found for -lnetcdf collect2: error: ld returned 1 exit status
The part of code where the error is thrown is the following ifeq ($(strip $(USE_NETCDF)),true) FFLAGS += -Dunc ifdef NETCDF_PATH LIBS = -L $(strip $(NETCDF_PATH))/lib -lnetcdff -Wl,-rpath,$(strip $(NETCDF_PATH))/lib INCLUDE = -I $(strip $(NETCDF_PATH))/include else LIBS = -lnetcdff INCLUDE = -I /usr/include endif else LIBS = INCLUDE = endif
Thanks in advance if anyone can help me.