Score:0

i installed the Netcdf (libnetcdf-dev libnetcdff-dev) I located their path using dpkg. but their are many locations, I don't know which one to choose?

ca flag

I don't know which path is the right one to choose where these libraries are installed. I need to use these path.

i want to do the following On a linux machine to install the code do the following:

cd TRACK-1.5.2

make sure '.' is in your PATH environment variable:

export PATH=${PATH}:.

set the following environment variables:

export CC=gcc export FC=gfortran export ARFLAGS=

export NETCDF=[path to your NETCDF installation]

run:

master -build -i=linux -f=linux make utils

dpkg -L libnetcdf-dev libnetcdff-dev
/.
/usr
/usr/bin
/usr/bin/nc-config
/usr/include
/usr/include/netcdf.h
/usr/include/netcdf_aux.h
/usr/include/netcdf_dispatch.h
/usr/include/netcdf_filter.h
/usr/include/netcdf_mem.h
/usr/include/netcdf_meta.h
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/cmake
/usr/lib/x86_64-linux-gnu/cmake/netCDF
/usr/lib/x86_64-linux-gnu/cmake/netCDF/netCDFConfig.cmake
/usr/lib/x86_64-linux-gnu/cmake/netCDF/netCDFConfigVersion.cmake
/usr/lib/x86_64-linux-gnu/cmake/netCDF/netCDFTargets-none.cmake
/usr/lib/x86_64-linux-gnu/cmake/netCDF/netCDFTargets.cmake
/usr/lib/x86_64-linux-gnu/libnetcdf.settings
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/netcdf.pc
/usr/share
/usr/share/doc
/usr/share/doc/libnetcdf-dev
/usr/share/doc/libnetcdf-dev/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libnetcdf-dev
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/nc-config.1.gz
/usr/share/man/man3
/usr/share/man/man3/netcdf.3.gz
/usr/lib/x86_64-linux-gnu/libnetcdf.so
/usr/share/doc/libnetcdf-dev/changelog.Debian.gz

/.
/usr
/usr/bin
/usr/bin/nf-config
/usr/include
/usr/include/netcdf.inc
/usr/include/netcdf.mod
/usr/include/netcdf4_f03.mod
/usr/include/netcdf4_nc_interfaces.mod
/usr/include/netcdf4_nf_interfaces.mod
/usr/include/netcdf_fortv2_c_interfaces.mod
/usr/include/netcdf_nc_data.mod
/usr/include/netcdf_nc_interfaces.mod
/usr/include/netcdf_nf_data.mod
/usr/include/netcdf_nf_interfaces.mod
/usr/include/typesizes.mod
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libnetcdff.a
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/netcdf-fortran.pc
/usr/share
/usr/share/doc
/usr/share/doc/libnetcdff-dev
/usr/share/doc/libnetcdff-dev/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/nf-config.1.gz
/usr/share/man/man3
/usr/share/man/man3/netcdf_f77.3.gz
/usr/share/man/man3/netcdf_fortran.3.gz
/usr/lib/x86_64-linux-gnu/libnetcdff.so
/usr/share/doc/libnetcdff-dev/changelog.Debian.gz

.

hr flag
What is the actual issue you are trying to solve?
Someone avatar
my flag
[Edit] your question to include this information. Read [ask] and [How to format my question?](/help/formatting).
hr flag
as well **tell us what you are trying to build** - generic build instructions are often much more complicated than necessary
raj avatar
cn flag
raj
From the information you posted previously (and now deleted that comment) it seems that the software you are trying to build expects netcdf installed from source in one particular directory, which is **not** a default directory where C compiler looks for libraries and/or header files. The packages you installed are located in default directories, so maybe if you skip the parametr indicating netcdf location at all, the build will work correctly?
raj avatar
cn flag
raj
Also, how is your screenshot related to the question? I see no connection at all.
ru flag
If you are compiling software, the dynamic linker `ld` will be able to determine the proper libraries. What is the **actual** problem you're trying to solve, and what software are you attempting to compile?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.