0

I am trying to install netcdf4-python by following https://code.google.com/archive/p/netcdf4-python/wikis/UbuntuInstall.wiki I had installed HDF5 successfully but when i was installing netCDF4, in "make"command, am getting the below errors

collect2: error: ld returned 1 exit status
Makefile:682: recipe for target 'ncgen3' failed
make[2]: *** [ncgen3] Error 1
make[2]: Leaving directory '/home/farook/Downloads/netcdf-4.4.1/ncgen3'
Makefile:691: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/farook/Downloads/netcdf-4.4.1'
Makefile:538: recipe for target 'all' failed
make: *** [all] Error 2
Harnish Kumar
  • 315
  • 5
  • 17
  • Could you add _gcc_ error lines that come before the _collect2_ line? – nempat Oct 18 '16 at 12:18
  • Well yeah, this is my whole error http://pastebin.com/72ncwVgy – Harnish Kumar Oct 18 '16 at 12:22
  • Probably your library paths are not set up correctly. I would try googling for __"libnetcdf.so: undefined reference to"__. THere are many similar issues with some answers. – nempat Oct 18 '16 at 12:30
  • 1
    Is there a reason why you try to install `netCDF4-python`, `HDF5` and/or `netCDF` manually? I think that most package managers include `netCDF4-python`, if not you could try `pip`, if not I would try to install `netCDF4-python` against `netCDF` from the package manager, and compiling *everything* manually would really be my last resort. – Bart Oct 18 '16 at 13:43
  • Yeah i did a pip install. That works. Thank you. – Harnish Kumar Oct 18 '16 at 14:01

0 Answers0