Hi,

First you should remove netcdf by command yum remove netcdf* (i dont know exactly the correct syntax but it is supposed to be right)
you should download the latest version of netcdf4 (one of the last version)
Then install it by command cc=gcc cxx=g++ f77=gfortran f90=gfortran f95=gfortran fc=gfortran ./configure
make
make check (You should not get an error)
make install
You should get (successfully completed)
However, if you want to do parallel processing and your openmpi is already installed, then i suggest you to do also the same procedure for openmpi installation.

Before all these things, you should check whether you have gfortran or not.

P.S. by using gfortran you can not use CLM option.