geodynamics / axisem

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

Closed davidn182 closed 7 years ago

davidn182 commented 7 years ago

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.

sstaehler commented 7 years ago

Hi @davidn182 ,

It seems to me, that the code cannot find netcdf. Did you install it?

davidn182 commented 7 years ago

Hi thanks, I uninstall and reinstall netcdf and that solved the problem.

sstaehler commented 7 years ago

Great, I'm closing the issue