jmaloney1985
New member
Hi,
I am going through the "Compiling WRF" tutorial and have come to the portion where I need to build the libraries. I am using Ubuntu and have the tcsh shell up and running in the cmd, but when I go to run the following code:
present
cd netcdf-4.1.3
./configure --prefix=$DIR/netcdf --disable-dap
--disable-netcdf-4 --disable-shared
make
make install
setenv PATH $DIR/netcdf/bin:$PATH
setenv NETCDF $DIR/netcdf
cd ..
in order to set up the library, it doesn't appear to be working correctly. I get the following responses from the prompt that I don't know what to make of:
checking for library containing deflate... no
configure: error: Can't find or link to the z library. Turn off netCDF-4 and opendap with --disable-netcdf-4 --disable-dap, or see config.log for errors.
--disable-netcdf-4 --disable-shared
--disable-netcdf-4: Command not found.
make
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> make install
make: *** No rule to make target 'install'. Stop.
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> setenv PATH $DIR/netcdf/bin:$PATH
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> setenv NETCDF $DIR/netcdf
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> cd ..
Any ideas on where I am going wrong? Note, I have set up the directories already using:
setenv DIR /path_to_directory/Build_WRF/LIBRARIES
setenv CC gcc
setenv CXX g++
setenv FC gfortran
setenv FCFLAGS -m64
setenv F77 gfortran
setenv FFLAGS -m64
setenv JASPERLIB $DIR/grib2/lib
setenv JASPERINC $DIR/grib2/include
setenv LDFLAGS -L$DIR/grib2/lib
setenv CPPFLAGS -I$DIR/grib2/include
Does it matter what directory you're in when you set these paths? For example, could I be in Desktop or do I have to be in the "LIBRARIES' directory when I set these paths?
Any help is greatly appreciated.
Thanks!
I am going through the "Compiling WRF" tutorial and have come to the portion where I need to build the libraries. I am using Ubuntu and have the tcsh shell up and running in the cmd, but when I go to run the following code:
present
cd netcdf-4.1.3
./configure --prefix=$DIR/netcdf --disable-dap
--disable-netcdf-4 --disable-shared
make
make install
setenv PATH $DIR/netcdf/bin:$PATH
setenv NETCDF $DIR/netcdf
cd ..
in order to set up the library, it doesn't appear to be working correctly. I get the following responses from the prompt that I don't know what to make of:
checking for library containing deflate... no
configure: error: Can't find or link to the z library. Turn off netCDF-4 and opendap with --disable-netcdf-4 --disable-dap, or see config.log for errors.
--disable-netcdf-4 --disable-shared
--disable-netcdf-4: Command not found.
make
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> make install
make: *** No rule to make target 'install'. Stop.
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> setenv PATH $DIR/netcdf/bin:$PATH
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> setenv NETCDF $DIR/netcdf
~/Desktop/Programs/Build_WRF/LIBRARIES/netcdf-4.1.3> cd ..
Any ideas on where I am going wrong? Note, I have set up the directories already using:
setenv DIR /path_to_directory/Build_WRF/LIBRARIES
setenv CC gcc
setenv CXX g++
setenv FC gfortran
setenv FCFLAGS -m64
setenv F77 gfortran
setenv FFLAGS -m64
setenv JASPERLIB $DIR/grib2/lib
setenv JASPERINC $DIR/grib2/include
setenv LDFLAGS -L$DIR/grib2/lib
setenv CPPFLAGS -I$DIR/grib2/include
Does it matter what directory you're in when you set these paths? For example, could I be in Desktop or do I have to be in the "LIBRARIES' directory when I set these paths?
Any help is greatly appreciated.
Thanks!