Installing NetCDF












2















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





























    2















    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



























      2












      2








      2








      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
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '11 at 7:46









      N.N.

      8,299144986




      8,299144986










      asked Nov 15 '11 at 6:03









      CALCAL

      11112




      11112






















          2 Answers
          2






          active

          oldest

          votes


















          4














          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































            0














            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.






            share|improve this answer

























              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
              });


              }
              });














              draft saved

              draft discarded


















              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









              4














              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




























                4














                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


























                  4












                  4








                  4







                  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













                  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












                  share|improve this answer



                  share|improve this answer










                  answered Nov 15 '11 at 6:11









                  zetahzetah

                  5,79473967




                  5,79473967

























                      0














                      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.






                      share|improve this answer






























                        0














                        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.






                        share|improve this answer




























                          0












                          0








                          0







                          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.






                          share|improve this answer















                          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.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 11 at 6:15

























                          answered Jun 26 '17 at 22:19









                          Samuel SantanaSamuel Santana

                          843118




                          843118






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              How to make a Squid Proxy server?

                              Is this a new Fibonacci Identity?

                              Touch on Surface Book