Skip to content
Snippets Groups Projects
INSTALLING 2.84 KiB
Newer Older
7/2008                     General Installation 


The prettiest makefile is

      make -f makefile_all_libs_new

This will compile all the libraries (depending on the selected options).
I use this on our AIX.


other makefile: makefile_all_libs       obsolete
                makefile		bog-standard linux
                makefile_no_netcdf	obsolete
                makefile_sys_jasper	obsolete




                           INSTALLING on Linux

On a bog-standard linux box, type "make" in the grib2 directory.  If all 
goes well, you will get the wgrib2 program in wgrib2/wgrib2.  Most
of the problems are caused by missing packages.  The missing packages
could include gcc, make, the developement png library and the development
z library.  Note, you need the development png and z libraries because
they include the headers.   Of course the png and z libraries are put
in unusual places, then the make won't work.  I guess that bog-standard
really means it works on my red-hat system at work and ubuntu at home.

I you don't have the png and z libraries, you can try 

    gmake -f makefile_all_libs_new

On some systems, gmake is called make.  In this case, you
edit makefile_all_libs_new and change the line

    MAKE=gmake

to

    MAKE=make

Then you type,

    make -f makefile_all_libs_new

You  can also try the older verion of the makefile

   gmake -f makefile_all_libs



                        INSTALLING on windows XP

On the cygwin development system, you need to install many packages.
Please install the jasper library because the included jasper source
code has some problems compiling.  Once the makefile points to the
pre-compiled jasper headers/library, the code can be compiled.
See makefile_sys_jasper.


                        INSTALLING on FreeBSD

Try make -f makefile_all_libs_new



                        INSTALLING on Apple OS-X

Has been done. No details.


                        INSTALLING on AIX

Define CC and CPP environment variables.  gmake -f makefile_all_libs_new


                        Optional Packages

If you are using the makefile_all_libs_new, you can edit the
makefile to select whether to include the netcdf and mysql packages.
Look for USE_NETCDF and USE_MYSQL.  1 means include the package
and 0 means don't include the package.


                          Comments Netcdf

The netcdf library is included with this distribution.  The library is 
compiled in enable-C-only mode which is not be that useful for 
fortran code.  Don't use try to link other codes to this library.
1) compiling jasper (jpeg2000)
2) compiling netcdf
3) missing libraries (png, jpeg, z)
4) netcdf may need compile options for 64-bit machines

These are problems best addressed by someone who knows the system.
For example if you have Linux distribution, XYZ, you would be wise
to consult a computer savy person familiar with XYZ.