[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NTC-629679]: about installing netcdf-fortran



Hi Takahito,

I think the problem is that you are trying to use a Fortran
compiler not supported by homebrew.  You may be specifying
a Fortran compiler other than homebrew's default, gfortran,
by using the FC (or F90?) environment variable.  You could 
email the homebrew netCDF maintainer to find out whether 
any other Fortran cimpilers can be supported, or unset the 
environment variable that specifies an unsupported Fortran 
compiler.

Another possibility would be to just use the homebrew installed
netCDF-C library and try to build the netCDF-Fortran library
from source, using your preferred Fortran compiler and following
the instructions here:

  http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html

We have verified that the homebrew recipe works OK with the default
gfortran compiler on OSX 10.9.3.

--Russ

> I am trying to install netcdf-fortran on my Mac (OSX ver. 10.6.8) using 
> Homebrew, but it fails like this:
> 
> 
> ~$ brew install netcdf --enable-fortran
> ==> Building with an alternative Fortran compiler
> This is unsupported.
> ==> Downloading ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.2.tar.gz
> Already downloaded: /Library/Caches/Homebrew/netcdf-4.3.2.tar.gz
> tar: Failed to set default locale
> ==> Downloading 
> https://github.com/Unidata/netcdf-c/commit/435d8a03ed28bb5ad63aff12cbc6ab91531b6bc8.diff
> Already downloaded: 
> /Library/Caches/Homebrew/netcdf--patch-770ee66026e4625b80711174600fb8c038b48f5e.diff
> ==> Patching
> patching file RELEASE_NOTES.md
> Hunk #1 succeeded at 5 with fuzz 2 (offset -4 lines).
> patching file libsrc4/nc4file.c
> patching file nc_test4/tst_nc4perf.c
> patching file nc_test4/tst_parallel3.c
> ==> ./configure --disable-dap-remote-tests 
> --prefix=/usr/local/Cellar/netcdf/4.3.2 --enable-static --enable-shared 
> --enable-netcd
> ==> make
> ==> make check
> ==> make install
> ==> Downloading https://github.com/Unidata/netcdf-cxx4/archive/v4.2.1.tar.gz
> Already downloaded: /Library/Caches/Homebrew/netcdf--cxx-4.2.1.tar.gz
> tar: Failed to set default locale
> ==> ./configure --disable-dap-remote-tests 
> --prefix=/usr/local/Cellar/netcdf/4.3.2 --enable-static --enable-shared
> ==> make
> ==> make check
> ==> make install
> ==> Downloading 
> http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.2.tar.gz
> Already downloaded: /Library/Caches/Homebrew/netcdf--fortran-4.2.tar.gz
> tar: Failed to set default locale
> ==> ./configure --disable-dap-remote-tests 
> --prefix=/usr/local/Cellar/netcdf/4.3.2 --enable-static --enable-shared
> ==> make
> ==> make check
> Please report to address@hidden
> ================================================
> make[2]: *** [check-TESTS] Error 1
> make[1]: *** [check-am] Error 2
> make: *** [check-recursive] Error 1
> 
> READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
> If reporting this issue please do so at (not Homebrew/homebrew):
> https://github.com/homebrew/homebrew-science/issues
> 
> 
> I do not know what is the cause of these errors. I would appreciate it if you 
> could kindly give me any advice.
> 
> Waiting for your kind reply,
> Takahito
> 
> -----------------------------------------------------------
> Takahito Kataoka
> Department of Earth and Planetary Science
> Graduate School of Science
> The University of Tokyo
> address@hidden
> 
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: NTC-629679
Department: Support netCDF
Priority: Normal
Status: Closed