[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #QQS-702432]: Regarding installing NetCDF-make check failed
- Subject: [netCDF #QQS-702432]: Regarding installing NetCDF-make check failed
- Date: Tue, 03 Apr 2012 21:27:05 -0600
Hi Tilani,
> I am trying to install GMT (Generic Mapping Tools) in fedora 16. So I need
> install netCDF library.
>
> but when i run make check it gives following
>
> /bin/sh: line 9: -O2: command not found
> FAIL: run_tests.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_64bit.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: ctest
> /bin/sh: line 9: -O2: command not found
> FAIL: ctest64
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_output.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_lengths.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_calendars.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_utf8
> /bin/sh: line 9: -O2: command not found
> FAIL: run_utf8_tests.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_nccopy3.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_charfill.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_iter.sh
> /bin/sh: line 9: -O2: command not found
> FAIL: tst_ncgen4_classic.sh
> ================================================
> 13 of 13 tests failed
>
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
> earlier when I did make check it says 2/8 test failed after that I did this
>
> make distclean
> export FC='ftn -O2'
> export F90='ftn -O2'
> export F95='ftn -O2'
> export CC='cc -O2'
> export CXX='CC -O2'
> export NM=nm
> export CPPFLAGS=-DpgiFortran
> export LOGFILE=build_netcdf4.0_noparallel.txt
> export CHECKFILE=check_netcdf4.0_noparallel.txt
>
> ./configure --enable-netcdf-4 \
> --with-hdf5=/work/n01/n01/fionanem/local/noparallel \
> --with-zlib=/work/n01/n01/fionanem/local \
> --with-szlib=/work/n01/n01/fionanem/local --disable-cxx \
> --disable-parallel-tests \
> --prefix=/work/n01/n01/fionanem/local/noparallel &> $LOGFILE
>
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
> so now 13/13 test failed
>
> please help
I'm not sure what "ftn" is, but it doesn't seem to be a Fortran compiler. I'm
guessing it is a shell script that perhaps calls a Fortran compiler, but for
setting the FC, F90, and F95 environment variables, you must use an actual
Fortran compiler, such as gfortran, g95, pgf90, or ifort.
You may also be able to get a binary version of netCDF for Fedora that doesn't
require building from source, by running something like
$ sudo yum install netcdf
If this doesn't help, please try first just building the netCDF C library with
these
instructions:
http://www.unidata.ucar.edu/netcdf/docs/
If that works and you get it installed on your system, and you determine that
GMT
also needs the netCDF Fortran library, then get the separate netcdf-fortran-4.2
release and follow the instructions for building that library here:
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: QQS-702432
Department: Support netCDF
Priority: Normal
Status: Closed