Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to write a fortran program which uses NetCDF. In order to do so, I have to have the netcdf-module somewhere on my harddisc, and tell my compiler where to find it. In Synaptic, the following packages are installed:

netcdf-bin
nco
netcdf-doc
libnetcdf-dev
libnetcdf6

libnetcdf-dev, especially, promises "everything needed for developing in C, C++, Fortran 77, and Fortran 90"; however, I cannot find the libraries anywhere on my system, and accordingly, I cannot develop anything. Where might the libraries be? They are neither in /usr/share, nor in /usr/lib. And how, in general, can I found out where a package installs its files on my machine?

share|improve this question
add comment

1 Answer

If you open Synaptic and focus on any installed package then click "Properties" button, you can see dialog with "Installed Files" tab.

So netcdf libraries are in /usr/lib/ and include files in /usr/include if you installed libnetcdf-dev through packaging system

share|improve this answer
    
Ah... indeed. Thanks. –  CAL Nov 15 '11 at 6:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.