netcdf-4.1.3

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
MROCIO
Posts: 7
Joined: Tue Aug 24, 2010 12:08 am
Location: CICATA-IPN

netcdf-4.1.3

#1 Unread post by MROCIO »

Hello ROMS users;

I am very new user of ROMS and also very new user of linux (UBUNTU 11.04), so, I have a couple questions.
1.- I already installed /usr/local/"netcdf-4.1.3" without HDF5, I just did.

inside of netcdf-4.1.3 directory;
>> sudo bash
>> ./configure --disable-netcdf-4
>> make
>> make check
>> make install

and everything was fine but I didn't specify what compiler to use and now I'm installing the newest version of ROMS and I think is needed this information. The netcdf was installed by default in /usr/local/, /usr/local/lib and /usr/local/bin because I also didn't specify and sorry about my English.

How I can to know this?
and
How I can to know where this compiler is?,

I saved the information from make check and make install, thanks a lot in advance.

==================
make check
make[4]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F90'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F90'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F90'
Making check in CXX
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples/CXX'
make simple_xy_wr simple_xy_rd sfc_pres_temp_wr sfc_pres_temp_rd pres_temp_4D_wr pres_temp_4D_rd
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/CXX'
depbase=`echo simple_xy_wr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../fortran -I../../include -I../../cxx -I../../liblib -I../../cxx -I../../liblib -g -O2 -MT simple_xy_wr.o -MD -MP -MF $depbase.Tpo -c -o simple_xy_wr.o simple_xy_wr.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I../../cxx -I../../liblib -g -O2 ../../cxx/libnetcdf_c++.la ../../liblib/libnetcdf.la -o simple_xy_wr simple_xy_wr.o -lm
libtool: link: g++ -I../../cxx -I../../liblib -g -O2 -o .libs/simple_xy_wr simple_xy_wr.o ../../cxx/.libs/libnetcdf_c++.so /usr/local/netcdf-4.1.3/liblib/.libs/libnetcdf.so ../../liblib/.libs/libnetcdf.so -lm
depbase=`echo simple_xy_rd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../fortran -I../../include -I../../cxx -I../../liblib -I../../cxx -I../../liblib -g -O2 -MT simple_xy_rd.o -MD -MP -MF $depbase.Tpo -c -o simple_xy_rd.o simple_xy_rd.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I../../cxx -I../../liblib -g -O2 ../../cxx/libnetcdf_c++.la ../../liblib/libnetcdf.la -o simple_xy_rd simple_xy_rd.o -lm
libtool: link: g++ -I../../cxx -I../../liblib -g -O2 -o .libs/simple_xy_rd simple_xy_rd.o ../../cxx/.libs/libnetcdf_c++.so /usr/local/netcdf-4.1.3/liblib/.libs/libnetcdf.so ../../liblib/.libs/libnetcdf.so -lm
depbase=`echo sfc_pres_temp_wr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../fortran -I../../include -I../../cxx -I../../liblib -I../../cxx -I../../liblib -g -O2 -MT sfc_pres_temp_wr.o -MD -MP -MF $depbase.Tpo -c -o sfc_pres_temp_wr.o sfc_pres_temp_wr.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I../../cxx -I../../liblib -g -O2 ../../cxx/libnetcdf_c++.la ../../liblib/libnetcdf.la -o sfc_pres_temp_wr sfc_pres_temp_wr.o -lm
libtool: link: g++ -I../../cxx -I../../liblib -g -O2 -o .libs/sfc_pres_temp_wr sfc_pres_temp_wr.o ../../cxx/.libs/libnetcdf_c++.so /usr/local/netcdf-4.1.3/liblib/.libs/libnetcdf.so ../../liblib/.libs/libnetcdf.so -lm
depbase=`echo sfc_pres_temp_rd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../fortran -I../../include -I../../cxx -I../../liblib -I../../cxx -I../../liblib -g -O2 -MT sfc_pres_temp_rd.o -MD -MP -MF $depbase.Tpo -c -o sfc_pres_temp_rd.o sfc_pres_temp_rd.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I../../cxx -I../../liblib -g -O2 ../../cxx/libnetcdf_c++.la ../../liblib/libnetcdf.la -o sfc_pres_temp_rd sfc_pres_temp_rd.o -lm
libtool: link: g++ -I../../cxx -I../../liblib -g -O2 -o .libs/sfc_pres_temp_rd sfc_pres_temp_rd.o ../../cxx/.libs/libnetcdf_c++.so /usr/local/netcdf-4.1.3/liblib/.libs/libnetcdf.so ../../liblib/.libs/libnetcdf.so -lm
depbase=`echo pres_temp_4D_wr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../fortran -I../../include -I../../cxx -I../../liblib -I../../cxx -I../../liblib -g -O2 -MT pres_temp_4D_wr.o -MD -MP -MF $depbase.Tpo -c -o pres_temp_4D_wr.o pres_temp_4D_wr.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I../../cxx -I../../liblib -g -O2 ../../cxx/libnetcdf_c++.la ../../liblib/libnetcdf.la -o pres_temp_4D_wr pres_temp_4D_wr.o -lm
libtool: link: g++ -I../../cxx -I../../liblib -g -O2 -o .libs/pres_temp_4D_wr pres_temp_4D_wr.o ../../cxx/.libs/libnetcdf_c++.so /usr/local/netcdf-4.1.3/liblib/.libs/libnetcdf.so ../../liblib/.libs/libnetcdf.so -lm
depbase=`echo pres_temp_4D_rd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../fortran -I../../include -I../../cxx -I../../liblib -I../../cxx -I../../liblib -g -O2 -MT pres_temp_4D_rd.o -MD -MP -MF $depbase.Tpo -c -o pres_temp_4D_rd.o pres_temp_4D_rd.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I../../cxx -I../../liblib -g -O2 ../../cxx/libnetcdf_c++.la ../../liblib/libnetcdf.la -o pres_temp_4D_rd pres_temp_4D_rd.o -lm
libtool: link: g++ -I../../cxx -I../../liblib -g -O2 -o .libs/pres_temp_4D_rd pres_temp_4D_rd.o ../../cxx/.libs/libnetcdf_c++.so /usr/local/netcdf-4.1.3/liblib/.libs/libnetcdf.so ../../liblib/.libs/libnetcdf.so -lm
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CXX'
make check-TESTS
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/CXX'
*** SUCCESS writing example file simple_xy.nc!
PASS: simple_xy_wr
*** SUCCESS reading example file simple_xy.nc!
PASS: simple_xy_rd
*** SUCCESS writing example file sfc_pres_temp.nc!
PASS: sfc_pres_temp_wr
*** SUCCESS reading example file sfc_pres_temp.nc!
PASS: sfc_pres_temp_rd
*** SUCCESS writing example file pres_temp_4D.nc!
PASS: pres_temp_4D_wr
*** SUCCESS reading example file pres_temp_4D.nc!
PASS: pres_temp_4D_rd

*** Testing that CXX examples produced same files as C examples.
*** checking simple_xy.nc...
*** checking sfc_pres_temp.nc...
*** checking pres_temp_4D.nc...
*** All CXX example comparisons worked!
PASS: do_comps.sh
==================
All 7 tests passed
==================
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CXX'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CXX'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/examples'
make[1]: Entering directory `/usr/local/netcdf-4.1.3'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3'



&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

make install

Making install in include
make[1]: Entering directory `/usr/local/netcdf-4.1.3/include'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 netcdf.h '/usr/local/include'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/include'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/include'
Making install in libdispatch
make[1]: Entering directory `/usr/local/netcdf-4.1.3/libdispatch'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/libdispatch'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/libdispatch'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/libdispatch'
Making install in libsrc
make[1]: Entering directory `/usr/local/netcdf-4.1.3/libsrc'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/libsrc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man3" || /bin/mkdir -p "/usr/local/share/man/man3"
/usr/bin/install -c -m 644 netcdf.3 '/usr/local/share/man/man3'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/libsrc'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/libsrc'
Making install in liblib
make[1]: Entering directory `/usr/local/netcdf-4.1.3/liblib'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/liblib'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c libnetcdf.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libnetcdf.so.7.1.1 /usr/local/lib/libnetcdf.so.7.1.1
libtool: install: (cd /usr/local/lib && { ln -s -f libnetcdf.so.7.1.1 libnetcdf.so.7 || { rm -f libnetcdf.so.7 && ln -s libnetcdf.so.7.1.1 libnetcdf.so.7; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libnetcdf.so.7.1.1 libnetcdf.so || { rm -f libnetcdf.so && ln -s libnetcdf.so.7.1.1 libnetcdf.so; }; })
libtool: install: /usr/bin/install -c .libs/libnetcdf.lai /usr/local/lib/libnetcdf.la
libtool: install: /usr/bin/install -c .libs/libnetcdf.a /usr/local/lib/libnetcdf.a
libtool: install: chmod 644 /usr/local/lib/libnetcdf.a
libtool: install: ranlib /usr/local/lib/libnetcdf.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/liblib'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/liblib'
Making install in nctest
make[1]: Entering directory `/usr/local/netcdf-4.1.3/nctest'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/nctest'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/nctest'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/nctest'
Making install in nc_test
make[1]: Entering directory `/usr/local/netcdf-4.1.3/nc_test'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/nc_test'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/nc_test'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/nc_test'
Making install in f90
make[1]: Entering directory `/usr/local/netcdf-4.1.3/f90'
make install-am
make[2]: Entering directory `/usr/local/netcdf-4.1.3/f90'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/f90'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man3" || /bin/mkdir -p "/usr/local/share/man/man3"
/usr/bin/install -c -m 644 netcdf_f90.3 '/usr/local/share/man/man3'
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 typesizes.mod netcdf.mod '/usr/local/include'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/f90'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/f90'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/f90'
Making install in fortran
make[1]: Entering directory `/usr/local/netcdf-4.1.3/fortran'
make install-am
make[2]: Entering directory `/usr/local/netcdf-4.1.3/fortran'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/fortran'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c libnetcdff.la '/usr/local/lib'
libtool: install: warning: relinking `libnetcdff.la'
libtool: install: (cd /usr/local/netcdf-4.1.3/fortran; /bin/bash /usr/local/netcdf-4.1.3/libtool --tag FC --mode=relink gfortran -g -O2 -version-number 5:1:0 -o libnetcdff.la -rpath /usr/local/lib fort-attio.lo fort-control.lo fort-dim.lo fort-genatt.lo fort-geninq.lo fort-genvar.lo fort-lib.lo fort-misc.lo fort-v2compat.lo fort-vario.lo fort-var1io.lo fort-varaio.lo fort-varmio.lo fort-varsio.lo ../liblib/libnetcdf.la ../f90/libnetcdff90.la -lm )
libtool: relink: gfortran -shared -fPIC .libs/fort-attio.o .libs/fort-control.o .libs/fort-dim.o .libs/fort-genatt.o .libs/fort-geninq.o .libs/fort-genvar.o .libs/fort-lib.o .libs/fort-misc.o .libs/fort-v2compat.o .libs/fort-vario.o .libs/fort-var1io.o .libs/fort-varaio.o .libs/fort-varmio.o .libs/fort-varsio.o -Wl,--whole-archive ../f90/.libs/libnetcdff90.a -Wl,--no-whole-archive -L/usr/local/lib -lnetcdf -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. -L/usr/lib/x86_64-linux-gnu -lgfortran -lm -lc -lgcc_s -O2 -Wl,-soname -Wl,libnetcdff.so.5 -o .libs/libnetcdff.so.5.1.0
libtool: install: /usr/bin/install -c .libs/libnetcdff.so.5.1.0T /usr/local/lib/libnetcdff.so.5.1.0
libtool: install: (cd /usr/local/lib && { ln -s -f libnetcdff.so.5.1.0 libnetcdff.so.5 || { rm -f libnetcdff.so.5 && ln -s libnetcdff.so.5.1.0 libnetcdff.so.5; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libnetcdff.so.5.1.0 libnetcdff.so || { rm -f libnetcdff.so && ln -s libnetcdff.so.5.1.0 libnetcdff.so; }; })
libtool: install: /usr/bin/install -c .libs/libnetcdff.lai /usr/local/lib/libnetcdff.la
libtool: install: /usr/bin/install -c .libs/libnetcdff.a /usr/local/lib/libnetcdff.a
libtool: install: chmod 644 /usr/local/lib/libnetcdff.a
libtool: install: ranlib /usr/local/lib/libnetcdff.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/share/man/man3" || /bin/mkdir -p "/usr/local/share/man/man3"
/usr/bin/install -c -m 644 netcdf_f77.3 '/usr/local/share/man/man3'
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 netcdf.inc '/usr/local/include'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/fortran'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/fortran'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/fortran'
Making install in ncgen3
make[1]: Entering directory `/usr/local/netcdf-4.1.3/ncgen3'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/ncgen3'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/bash ../libtool --mode=install /usr/bin/install -c ncgen3 '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/ncgen3 /usr/local/bin/ncgen3
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 ncgen3.1 '/usr/local/share/man/man1'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/ncgen3'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/ncgen3'
Making install in ncgen
make[1]: Entering directory `/usr/local/netcdf-4.1.3/ncgen'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/ncgen'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/bash ../libtool --mode=install /usr/bin/install -c ncgen '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/ncgen /usr/local/bin/ncgen
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 ncgen.1 '/usr/local/share/man/man1'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/ncgen'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/ncgen'
Making install in ncdump
make[1]: Entering directory `/usr/local/netcdf-4.1.3/ncdump'
make install-recursive
make[2]: Entering directory `/usr/local/netcdf-4.1.3/ncdump'
Making install in cdl4
make[3]: Entering directory `/usr/local/netcdf-4.1.3/ncdump/cdl4'
make[4]: Entering directory `/usr/local/netcdf-4.1.3/ncdump/cdl4'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump/cdl4'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump/cdl4'
Making install in expected4
make[3]: Entering directory `/usr/local/netcdf-4.1.3/ncdump/expected4'
make[4]: Entering directory `/usr/local/netcdf-4.1.3/ncdump/expected4'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump/expected4'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump/expected4'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/ncdump'
make[4]: Entering directory `/usr/local/netcdf-4.1.3/ncdump'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/bash ../libtool --mode=install /usr/bin/install -c ncdump nccopy '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/ncdump /usr/local/bin/ncdump
libtool: install: /usr/bin/install -c .libs/nccopy /usr/local/bin/nccopy
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 ncdump.1 nccopy.1 '/usr/local/share/man/man1'
make[4]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/ncdump'
Making install in nf_test
make[1]: Entering directory `/usr/local/netcdf-4.1.3/nf_test'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/nf_test'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/nf_test'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/nf_test'
Making install in cxx
make[1]: Entering directory `/usr/local/netcdf-4.1.3/cxx'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/cxx'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c libnetcdf_c++.la '/usr/local/lib'
libtool: install: warning: relinking `libnetcdf_c++.la'
libtool: install: (cd /usr/local/netcdf-4.1.3/cxx; /bin/bash /usr/local/netcdf-4.1.3/libtool --tag CXX --mode=relink g++ -g -O2 -version-number 4:1:0 -o libnetcdf_c++.la -rpath /usr/local/lib libnetcdf_c___la-netcdf.lo libnetcdf_c___la-ncvalues.lo ../liblib/libnetcdf.la -lm )
libtool: relink: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/crtbeginS.o .libs/libnetcdf_c___la-netcdf.o .libs/libnetcdf_c___la-ncvalues.o -L/usr/local/lib -lnetcdf -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/crtendS.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crtn.o -O2 -Wl,-soname -Wl,libnetcdf_c++.so.4 -o .libs/libnetcdf_c++.so.4.1.0
libtool: install: /usr/bin/install -c .libs/libnetcdf_c++.so.4.1.0T /usr/local/lib/libnetcdf_c++.so.4.1.0
libtool: install: (cd /usr/local/lib && { ln -s -f libnetcdf_c++.so.4.1.0 libnetcdf_c++.so.4 || { rm -f libnetcdf_c++.so.4 && ln -s libnetcdf_c++.so.4.1.0 libnetcdf_c++.so.4; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libnetcdf_c++.so.4.1.0 libnetcdf_c++.so || { rm -f libnetcdf_c++.so && ln -s libnetcdf_c++.so.4.1.0 libnetcdf_c++.so; }; })
libtool: install: /usr/bin/install -c .libs/libnetcdf_c++.lai /usr/local/lib/libnetcdf_c++.la
libtool: install: /usr/bin/install -c .libs/libnetcdf_c++.a /usr/local/lib/libnetcdf_c++.a
libtool: install: chmod 644 /usr/local/lib/libnetcdf_c++.a
libtool: install: ranlib /usr/local/lib/libnetcdf_c++.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 netcdfcpp.h ncvalues.h netcdf.hh '/usr/local/include'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/cxx'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/cxx'
Making install in man4
make[1]: Entering directory `/usr/local/netcdf-4.1.3/man4'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/man4'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/info" || /bin/mkdir -p "/usr/local/share/info"
/usr/bin/install -c -m 644 ./netcdf.info ./netcdf-install.info ./netcdf-c.info ./netcdf-c.info-1 ./netcdf-c.info-2 ./netcdf-f77.info ./netcdf-f77.info-1 ./netcdf-f77.info-2 ./netcdf-f90.info ./netcdf-cxx.info ./netcdf-tutorial.info '/usr/local/share/info'
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf-install.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf-c.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf-f77.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf-f90.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf-cxx.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/netcdf-tutorial.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/man4'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/man4'
Making install in examples
make[1]: Entering directory `/usr/local/netcdf-4.1.3/examples'
Making install in C
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples/C'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/C'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/C'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/C'
Making install in CDL
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples/CDL'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/CDL'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CDL'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CDL'
Making install in F77
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples/F77'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/F77'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F77'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F77'
Making install in F90
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples/F90'
make install-am
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/F90'
make[4]: Entering directory `/usr/local/netcdf-4.1.3/examples/F90'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F90'
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F90'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/F90'
Making install in CXX
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples/CXX'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples/CXX'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CXX'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples/CXX'
make[2]: Entering directory `/usr/local/netcdf-4.1.3/examples'
make[3]: Entering directory `/usr/local/netcdf-4.1.3/examples'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/netcdf-4.1.3/examples'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3/examples'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3/examples'
make[1]: Entering directory `/usr/local/netcdf-4.1.3'
make[2]: Entering directory `/usr/local/netcdf-4.1.3'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c nc-config '/usr/local/bin'
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 netcdf.pc '/usr/local/lib/pkgconfig'
make install-data-hook
make[3]: Entering directory `/usr/local/netcdf-4.1.3'

+-------------------------------------------------------------+
| Congratulations! You have successfully installed netCDF! |
| |
| You can use script "nc-config" to find out the relevant |
| compiler options to build your application. Enter |
| |
| nc-config --help |
| |
| for additional information. |
| |
| CAUTION: |
| |
| If you have not already run "make check", then we strongly |
| recommend you do so. It does not take very long. |
| |
| Before using netCDF to store important data, test your |
| build with "make check". |
| |
| NetCDF is tested nightly on many platforms at Unidata |
| but your platform is probably different in some ways. |
| |
| If any tests fail, please see the netCDF web site: |
| http://www.unidata.ucar.edu/software/netcdf/ |
| |
| NetCDF is developed and maintained at the Unidata Program |
| Center. Unidata provides a broad array of data and software |
| tools for use in geoscience education and research. |
| http://www.unidata.ucar.edu |
+-------------------------------------------------------------+
make[3]: Leaving directory `/usr/local/netcdf-4.1.3'
make[2]: Leaving directory `/usr/local/netcdf-4.1.3'
make[1]: Leaving directory `/usr/local/netcdf-4.1.3'

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: netcdf-4.1.3

#2 Unread post by m.hadfield »

gfortran

User avatar
shchepet
Posts: 188
Joined: Fri Nov 14, 2003 4:57 pm

Re: netcdf-4.1.3

#3 Unread post by shchepet »

With NetCDF 4.1.3 it is quite easy to specify what you want.

For example, if you want to use Intel Compiler, then you have to execute the following
sequence of commands (literally, just copy-paste and execute them one-by-one):

Code: Select all

tcsh
setenv CC icc
setenv CXX icpc
setenv FC ifort
setenv F77 ifort
setenv F90 ifort

setenv CFLAGS '-O3 -fp-model precise'
setenv CXXFLAGS '-O3 -fp-model precise'
setenv CFLAGS '-O3 -fp-model precise'
setenv FCFLAGS '-O3 -fp-model precise'
setenv FFLAGS '-O3 -fp-model precise'

./configure --prefix=/opt/netcdf-4.1.3 --disable-dap --disable-netcdf-4

make ; make install ; make check
If you want to use different compiler you have to specify all the macros above
accordingly.

Note, the above configuration disables both netcdf-4 and LDAP access. If you want
these to work, all necessary prerequisits (HDF-5, zlib, and LDAP) must be installed on
your machine before you configure netCDF (otherwise configure script will fail).
For every-day ROMS computing having these is not important.

Also note: all-default configure (with no arguments) also inserts "-g" flag into
compilation which slows down execution of files which use netcdf library.

Finally, you can always execute ./configure --help to see what tunable
options are available.

MROCIO
Posts: 7
Joined: Tue Aug 24, 2010 12:08 am
Location: CICATA-IPN

Re: netcdf-4.1.3

#4 Unread post by MROCIO »

Thanks again!!!!!

Now where do I have to put this info to specify the netcdf direction to the model?
In directory "Compilers", inside of the file Linux-gfortran.mk or I should do something else?

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: netcdf-4.1.3

#5 Unread post by m.hadfield »

In the absence of any direction to the contrary, netCDF will have been built for the Gfortran compiler.

To tell ROMS to use the right configuration, set the following environment variables (Bash style)

Code: Select all

    export FORT=gfortran
    export USE_NETCDF4=on
    export NC_CONFIG=/usr/local/bin/nc-config

Post Reply