Installing netcdf c++ interface on ubuntu 12.04.1 LTS

Posted by iluvatar on Ask Ubuntu See other posts from Ask Ubuntu or by iluvatar
Published on 2012-10-04T00:12:41Z Indexed on 2012/10/04 3:53 UTC
Read the original article Hit count: 335

Filed under:

I am using a code which employs the modern netcdf c++ interface (netcdf namespace, include file is called just netcdf without .h or similar, ncFile class, etc) and have just switched to ubuntu 12.04.1 LTS. I installed netcdf and libnetcdf6 with apt-get, but I still get the "old" headers in /usr/local/include (netcdf.h, netcdfcpp.h, etc). In Ubuntu, the library version for netcdf is 4.1.1, while at my own computer with Mac Os X (where I have the right netcdf include file) the version is 4.2.1.1 . I cannot modify the source code I am using. I would like to know if there is a way to upgrade the netcdf library on ubuntu to support the modern c++ ointerface, or, if I have to manually compile it, if you think that using src2pkg is a good idea. This is my first experience with Ubuntu.

Thanks in advance.

© Ask Ubuntu or respective owner

Related posts about 12.04