Take a look at the instructions for building the libraries
here. So, in that example, you would install libpng, zlib, and jasper all in a folder called "grib2. For e.g., these are the directories contained in my 'grib2' directory:
Code:
> ls /home/libraries/grib2/
bin include lib man share
and these are the files found in the "bin," "lib," and "include" directories (which are the ones we care about):
Code:
>ls bin/
imgcmp imginfo jasper libpng12-config libpng-config tmrdemo
>ls lib/
libjasper.a libjasper.la libpng12.a libpng12.la libpng.a libpng.la libz.a pkgconfig
>ls include
jasper/ libpng12/ pngconf.h png.h zconf.h zlib.h
Then if I were setting my LD_LIBRARY_PATH, I would set
Code:
export LD_LIBRARY_PATH=/home/libraries/grib2/lib:$LD_LIBRARY_PATH