This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi jaikumar, > I try to install the netcdf-cxx-4.2. But while installation. > But after installation while checking the installation directory - > /app/netcdf-4.2/. I didn't find any library or binary files are located > there. > So,Help me where I am lacking. > Please Find Attachment - Config.log You ran "make all", but you should still run "make check" and "make install" to get the library installed where you have specified. -Russ > # ./configure --prefix=/app/netcdf-4.2/ > CPPFLAGS="-I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml" > configure: netCDF-cxx 4.2 > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > configure: checking user options > checking whether extra valgrind tests should be run... no > checking whether netCDF extra tests should be run (developers only)... no > checking whether large file (> 2GB) tests should be run... no > checking where to put large temp files if large file tests are run... . > configure: finding C++ compiler (will not be used if C++ API is not desired) > checking for g++... g++ > checking whether the C++ compiler works... yes > checking for C++ compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for style of include used by make... GNU > checking dependency style of g++... gcc3 > configure: setting up libtool > checking how to print strings... printf > checking for gcc... gcc > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking dependency style of gcc... gcc3 > checking for a sed that does not truncate output... /bin/sed > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for fgrep... /bin/grep -F > checking for ld used by gcc... /usr/bin/ld > checking if the linker (/usr/bin/ld) is GNU ld... yes > checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B > checking the name lister (/usr/bin/nm -B) interface... BSD nm > checking whether ln -s works... yes > checking the maximum length of command line arguments... 3458764513820540925 > checking whether the shell understands some XSI constructs... yes > checking whether the shell understands "+="... yes > checking for /usr/bin/ld option to reload object files... -r > checking for objdump... objdump > checking how to recognize dependent libraries... pass_all > checking for ar... ar > checking for strip... strip > checking for ranlib... ranlib > checking command to parse /usr/bin/nm -B output from gcc object... ok > checking how to run the C preprocessor... gcc -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking for dlfcn.h... yes > checking for objdir... .libs > checking if gcc supports -fno-rtti -fno-exceptions... no > checking for gcc option to produce PIC... -fPIC -DPIC > checking if gcc PIC flag -fPIC -DPIC works... yes > checking if gcc static flag -static works... no > checking if gcc supports -c -o file.o... yes > checking if gcc supports -c -o file.o... (cached) yes > checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports > shared libraries... yes > checking whether -lc should be explicitly linked in... no > checking dynamic linker characteristics... GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > checking whether stripping libraries is possible... yes > checking if libtool supports shared libraries... yes > checking whether to build shared libraries... yes > checking whether to build static libraries... yes > checking how to run the C++ preprocessor... g++ -E > checking for ld used by g++... /usr/bin/ld -m elf_x86_64 > checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes > checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports > shared libraries... yes > checking for g++ option to produce PIC... -fPIC -DPIC > checking if g++ PIC flag -fPIC -DPIC works... yes > checking if g++ static flag -static works... no > checking if g++ supports -c -o file.o... yes > checking if g++ supports -c -o file.o... (cached) yes > checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports > shared libraries... yes > checking dynamic linker characteristics... (cached) GNU/Linux ld.so > checking how to hardcode library paths into programs... immediate > configure: finding other utilities > checking for special C compiler options needed for large files... no > checking for _FILE_OFFSET_BITS value needed for large files... no > checking netcdf.h usability... yes > checking netcdf.h presence... yes > checking for netcdf.h... yes > checking for library containing nc_open... none required > checking for nc_def_opaque... no > checking for nccreate... yes > checking for nc_set_log_level... no > checking for nc_use_parallel_enabled... no > configure: generating header files and makefiles > configure: creating ./config.status > config.status: creating Makefile > config.status: creating man4/Makefile > config.status: creating cxx/Makefile > config.status: creating examples/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing depfiles commands > config.status: executing libtool commands > [root@login1 netcdf-cxx-4.2]# make > make all-recursive > make[1]: Entering directory `/app/setups/netcdf-cxx-4.2' > Making all in cxx > make[2]: Entering directory `/app/setups/netcdf-cxx-4.2/cxx' > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml -g -O2 -MT > libnetcdf_c___la-netcdf.lo -MD -MP -MF .deps/libnetcdf_c___la-netcdf.Tpo > -c -o libnetcdf_c___la-netcdf.lo `test -f 'netcdf.cpp' || echo > './'`netcdf.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. > -I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml -g -O2 -MT > libnetcdf_c___la-netcdf.lo -MD -MP -MF .deps/libnetcdf_c___la-netcdf.Tpo > -c netcdf.cpp -fPIC -DPIC -o .libs/libnetcdf_c___la-netcdf.o > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. > -I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml -g -O2 -MT > libnetcdf_c___la-netcdf.lo -MD -MP -MF .deps/libnetcdf_c___la-netcdf.Tpo > -c netcdf.cpp -o libnetcdf_c___la-netcdf.o >/dev/null 2>&1 > mv -f .deps/libnetcdf_c___la-netcdf.Tpo .deps/libnetcdf_c___la-netcdf.Plo > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml -g -O2 -MT > libnetcdf_c___la-ncvalues.lo -MD -MP -MF > .deps/libnetcdf_c___la-ncvalues.Tpo -c -o libnetcdf_c___la-ncvalues.lo > `test -f 'ncvalues.cpp' || echo './'`ncvalues.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. > -I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml -g -O2 -MT > libnetcdf_c___la-ncvalues.lo -MD -MP -MF > .deps/libnetcdf_c___la-ncvalues.Tpo -c ncvalues.cpp -fPIC -DPIC -o > .libs/libnetcdf_c___la-ncvalues.o > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. > -I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml -g -O2 -MT > libnetcdf_c___la-ncvalues.lo -MD -MP -MF > .deps/libnetcdf_c___la-ncvalues.Tpo -c ncvalues.cpp -o > libnetcdf_c___la-ncvalues.o >/dev/null 2>&1 > mv -f .deps/libnetcdf_c___la-ncvalues.Tpo > .deps/libnetcdf_c___la-ncvalues.Plo > /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -version-number > 4:2:0 -o libnetcdf_c++.la -rpath /app/netcdf-4.2/lib > libnetcdf_c___la-netcdf.lo libnetcdf_c___la-ncvalues.lo > libtool: link: g++ -shared -nostdlib > /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crti.o > /usr/lib/gcc/x86_64-redhat-linux/4.4.6/crtbeginS.o > .libs/libnetcdf_c___la-netcdf.o .libs/libnetcdf_c___la-ncvalues.o > -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6 > -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64 > -L/lib/../lib64 -L/usr/lib/../lib64 > -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../.. -lstdc++ -lm -lc > -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.4.6/crtendS.o > /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crtn.o > -Wl,-soname -Wl,libnetcdf_c++.so.4 -o .libs/libnetcdf_c++.so.4.2.0 > libtool: link: (cd ".libs" && rm -f "libnetcdf_c++.so.4" && ln -s > "libnetcdf_c++.so.4.2.0" "libnetcdf_c++.so.4") > libtool: link: (cd ".libs" && rm -f "libnetcdf_c++.so" && ln -s > "libnetcdf_c++.so.4.2.0" "libnetcdf_c++.so") > libtool: link: ar cru .libs/libnetcdf_c++.a libnetcdf_c___la-netcdf.o > libnetcdf_c___la-ncvalues.o > libtool: link: ranlib .libs/libnetcdf_c++.a > libtool: link: ( cd ".libs" && rm -f "libnetcdf_c++.la" && ln -s > "../libnetcdf_c++.la" "libnetcdf_c++.la" ) > make[2]: Leaving directory `/app/setups/netcdf-cxx-4.2/cxx' > Making all in examples > make[2]: Entering directory `/app/setups/netcdf-cxx-4.2/examples' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/app/setups/netcdf-cxx-4.2/examples' > Making all in man4 > make[2]: Entering directory `/app/setups/netcdf-cxx-4.2/man4' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/app/setups/netcdf-cxx-4.2/man4' > make[2]: Entering directory `/app/setups/netcdf-cxx-4.2' > make[2]: Leaving directory `/app/setups/netcdf-cxx-4.2' > make[1]: Leaving directory `/app/setups/netcdf-cxx-4.2' > [root@login1 netcdf-cxx-4.2]# #./configure --prefix=/app/netcdf-4.2/ > CPPFLAGS="-I/usr/include/c++/3.4.6/backward -I/app/netcdf-3.6.3/include/ > -L/app/netcdf-4.1.2/lib/ -lnetcdf > -L/opt/clustertest/composerxe/compiler/lib/intel64/ -lintlc -fPIC > -L/app/openmpi-1.6.4_intel/lib/ -lsvml" > [root@login1 netcdf-cxx-4.2]# ls /app/netcdf-4.2/ > [root@login1 netcdf-cxx-4.2]# > > -- > Regards, > *Jaikumar S, > HCL Infotech Ltd. > (A subsidiary of HCL INFOSYSTEMS LTD) > PH : 09751855415 > Email: address@hidden > Technology that touches lives > * > > > ::DISCLAIMER:: > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. > E-mail transmission is not guaranteed to be secure or error-free as > information could be intercepted, corrupted, > lost, destroyed, arrive late or incomplete, or may contain viruses in > transmission. The e mail and its contents > (with or without referred errors) shall therefore not attach any liability on > the originator or HCL or its affiliates. > Views or opinions, if any, presented in this email are solely those of the > author and may not necessarily reflect the > views or opinions of HCL or its affiliates. Any form of reproduction, > dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of authorized representative of > HCL is strictly prohibited. If you have received this email in error please > delete it and notify the sender immediately. > Before opening any email and/or attachments, please check them for viruses > and other defects. > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: TTO-271796 Department: Support netCDF Priority: Normal Status: Closed