[MITgcm-support] Build with netcdf
Martin Losch
Martin.Losch at awi.de
Fri Jul 27 07:43:28 EDT 2012
I am not sure but try
export NETCDF_ROOT=/home/roopa/netcdf- 3.6.1
in your .bashrc, otherwise genmake2 may not inherit it from the calling shell?
genmake2 is looking for files in $NETCDF_ROOT/include and $NETCDF_ROOT/lib
if in doubht check genmake_warnings for more details.
Martin
On Jul 27, 2012, at 11:31 AM, Roopashree Shrivastava wrote:
> Dear all,
> Good afternoon. I have a query with building MITGCM with netcdf enabled. The details of netcdf installation are as follows
>
> FC=gfortran
> CC=gcc
> CXX=g++
> PATH /home/roopa/netcdf- 3.6.1
>
> I am building MITGCM also with gfortran. The OPTFILE used is linux_amd64_gfortran. In that i have defined the path of netcdf to the above installation. however the genmake2 step still shows an error with building the netcdf enabled binary. The OPTFILE is attached here for reference
>
> The specific error is "Can we create netcdf enabled binaries no"
> check the lib path in the netcdf installation
>
> Also in .bashrc I have defined NETCDF_ROOT=/home/roopa/netcdf- 3.6.1
>
> then what should NETCDF_HOME and NETCDF_LIB be set to??. According to me if NETCDF_ROOT is defined then NETCDF_HOME and NETCDF_LIB are not needed.
>
> Thanks to all
> <linux_amd64_gfortran>_______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list