mampisarkar111 / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
0 stars 0 forks source link

cannot find libnetcdf.so.6 #146

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to run a program with netcdf4 interface, but getting the error: 
"ImportError: libnetcdf.so.6: cannot open shared object file: No such file or 
directory"

I am on a 64 bit Ununtu 12.10 computer and I have netcdf-4.2, hdf5-1.8.9  and 
python 2.7.3 installed. The code I am trying to run is simply "From netCDF4 
import Dataset" when it gives me the error. 

I tried to run a locate on libnetcdf.so.6 and returned nothing, but I found:
/usr/lib/libnetcdf.so
/usr/lib/libnetcdf.so.7
/usr/lib/libnetcdf.so.7.1.1

Does anyone know how to get the older libnetcdf.so.6, or tell python to use 
libnetcdf.so.7?

Any help would be greatly appreciated.

Original issue reported on code.google.com by peffert...@gmail.com on 6 Nov 2012 at 7:41

GoogleCodeExporter commented 8 years ago
Your best bet is probably to rebuild the module so it links the version of the 
library you have installed. 

Original comment by whitaker.jeffrey@gmail.com on 6 Nov 2012 at 8:13

GoogleCodeExporter commented 8 years ago
To be honest, I do not know how to do that! How do you link a library when 
installing netCDF4?

Original comment by peffert...@gmail.com on 6 Nov 2012 at 9:19

GoogleCodeExporter commented 8 years ago
how did you install it in the first place? With the Ubuntu package manager? 

Original comment by whitaker.jeffrey@gmail.com on 6 Nov 2012 at 9:26

GoogleCodeExporter commented 8 years ago
I am getting the same error - running on Ubuntu 12.10.  I installed the package 
via "sudo apt-get install python-netcdf".  I also only have libnetcdf.so.7 and 
libnetcdf.so.7.1.1 files in /usr/lib.  Is there an install option that does not 
require a "build" approach?

Original comment by gamesb...@gmail.com on 5 Dec 2012 at 12:22

GoogleCodeExporter commented 8 years ago
This is really a Ubuntu question, but it seems to me that either you need to 
install the package the provides libnetcdf.so.6, or rebuilt python-netcdf so it 
links the new libnetcdf.

Original comment by whitaker.jeffrey@gmail.com on 5 Dec 2012 at 5:12

GoogleCodeExporter commented 8 years ago

Original comment by whitaker.jeffrey@gmail.com on 7 Mar 2013 at 11:43