Installing NetCDF
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?
installation libraries
add a comment |
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?
installation libraries
add a comment |
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?
installation libraries
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?
installation libraries
installation libraries
edited Nov 15 '11 at 7:46
N.N.
8,329144987
8,329144987
asked Nov 15 '11 at 6:03
CALCAL
11112
11112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
In addition to using system tools, nc-config and nf-config can help you find those details. This is helpful if you compiled netcdf yourself.
I believe nf-config
only started shipping sometime after netcdf 4.2 was released, because the fortran lib was split into a different package then. So, if you fail to find the relevant fortran information with nc-config
, check if nf-config
exists somewhere and use it instead.
From netcdf 4.2 release notes:
Beginning with version 4.2, the three [c, c++, fortran] libraries are being released as separate packages.
Finally, here's a sample output of nc-config --all
:
This netCDF 4.2.1.1 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/local/include -I/share/ed/local/spike/include
--libs -> -L/usr/local/lib -lnetcdf
--has-c++ -> no
--cxx ->
--has-c++4 -> yes
--cxx4 -> g++
--fc -> gfortran
--fflags -> -g -O2 -I/usr/local/include
--flibs -> -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.2.1.1
The left column has the options that can be sent to nc-config
to produce a terser, and probably more relevant, output.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f79418%2finstalling-netcdf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment |
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
add a comment |
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
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
answered Nov 15 '11 at 6:11
zetahzetah
5,80973967
5,80973967
add a comment |
add a comment |
In addition to using system tools, nc-config and nf-config can help you find those details. This is helpful if you compiled netcdf yourself.
I believe nf-config
only started shipping sometime after netcdf 4.2 was released, because the fortran lib was split into a different package then. So, if you fail to find the relevant fortran information with nc-config
, check if nf-config
exists somewhere and use it instead.
From netcdf 4.2 release notes:
Beginning with version 4.2, the three [c, c++, fortran] libraries are being released as separate packages.
Finally, here's a sample output of nc-config --all
:
This netCDF 4.2.1.1 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/local/include -I/share/ed/local/spike/include
--libs -> -L/usr/local/lib -lnetcdf
--has-c++ -> no
--cxx ->
--has-c++4 -> yes
--cxx4 -> g++
--fc -> gfortran
--fflags -> -g -O2 -I/usr/local/include
--flibs -> -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.2.1.1
The left column has the options that can be sent to nc-config
to produce a terser, and probably more relevant, output.
add a comment |
In addition to using system tools, nc-config and nf-config can help you find those details. This is helpful if you compiled netcdf yourself.
I believe nf-config
only started shipping sometime after netcdf 4.2 was released, because the fortran lib was split into a different package then. So, if you fail to find the relevant fortran information with nc-config
, check if nf-config
exists somewhere and use it instead.
From netcdf 4.2 release notes:
Beginning with version 4.2, the three [c, c++, fortran] libraries are being released as separate packages.
Finally, here's a sample output of nc-config --all
:
This netCDF 4.2.1.1 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/local/include -I/share/ed/local/spike/include
--libs -> -L/usr/local/lib -lnetcdf
--has-c++ -> no
--cxx ->
--has-c++4 -> yes
--cxx4 -> g++
--fc -> gfortran
--fflags -> -g -O2 -I/usr/local/include
--flibs -> -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.2.1.1
The left column has the options that can be sent to nc-config
to produce a terser, and probably more relevant, output.
add a comment |
In addition to using system tools, nc-config and nf-config can help you find those details. This is helpful if you compiled netcdf yourself.
I believe nf-config
only started shipping sometime after netcdf 4.2 was released, because the fortran lib was split into a different package then. So, if you fail to find the relevant fortran information with nc-config
, check if nf-config
exists somewhere and use it instead.
From netcdf 4.2 release notes:
Beginning with version 4.2, the three [c, c++, fortran] libraries are being released as separate packages.
Finally, here's a sample output of nc-config --all
:
This netCDF 4.2.1.1 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/local/include -I/share/ed/local/spike/include
--libs -> -L/usr/local/lib -lnetcdf
--has-c++ -> no
--cxx ->
--has-c++4 -> yes
--cxx4 -> g++
--fc -> gfortran
--fflags -> -g -O2 -I/usr/local/include
--flibs -> -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.2.1.1
The left column has the options that can be sent to nc-config
to produce a terser, and probably more relevant, output.
In addition to using system tools, nc-config and nf-config can help you find those details. This is helpful if you compiled netcdf yourself.
I believe nf-config
only started shipping sometime after netcdf 4.2 was released, because the fortran lib was split into a different package then. So, if you fail to find the relevant fortran information with nc-config
, check if nf-config
exists somewhere and use it instead.
From netcdf 4.2 release notes:
Beginning with version 4.2, the three [c, c++, fortran] libraries are being released as separate packages.
Finally, here's a sample output of nc-config --all
:
This netCDF 4.2.1.1 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/local/include -I/share/ed/local/spike/include
--libs -> -L/usr/local/lib -lnetcdf
--has-c++ -> no
--cxx ->
--has-c++4 -> yes
--cxx4 -> g++
--fc -> gfortran
--fflags -> -g -O2 -I/usr/local/include
--flibs -> -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes
--has-dap -> yes
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--has-szlib ->
--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.2.1.1
The left column has the options that can be sent to nc-config
to produce a terser, and probably more relevant, output.
edited Jan 11 at 6:15
answered Jun 26 '17 at 22:19
Samuel SantanaSamuel Santana
853219
853219
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f79418%2finstalling-netcdf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown