- 积分
- 9305
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-7-3
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2024-11-13 10:14:45
|
显示全部楼层
本帖最后由 任性小王子 于 2024-11-13 10:17 编辑
1. 安装zlib
./configure --prefix=$DIR/grib2
make
make install
2. 安装jasper
./configure --prefix=$DIR/grib2
make
make install
3. 安装libpng
./configure --prefix=$DIR/grib2
make
make install
export LDFLAGS="-L$DIR/grib2/lib"
export CPPFLAGS="-I$DIR/grib2/include"
export JASPERINC=$DIR/grib2/include
export JASPERLIB=$DIR/grib2/lib
4. 安装hdf5
./configure --prefix=$DIR/hdf5 --enable-fortran --with-zlib=$DIR/grib2
make
make install
5. 安装netcdf-c
CPPFLAGS="-I$DIR/hdf5/include" LDFLAGS="-L$DIR/hdf5/lib" ./configure --prefix=$DIR/netcdf --disable-dap
make
make install
6. 安装netcdf-fortran
./configure --prefix=$DIR/netcdf CPPFLAGS="-I$DIR/netcdf/include" LDFLAGS="-L$DIR/netcdf/lib"
make
make install
四、配置bashrc
# for all software
export DIR=/home/changmh/apps
# for hdf5
export LD_LIBRARY_PATH=$DIR/hdf5/lib:$LD_LIBRARY_PATH
# for netcdf
export NETCDF=$DIR/netcdf
export PATH=$NETCDF/bin:$PATH
export LD_LIBRARY_PATH=$NETCDF/lib:$LD_LIBRARY_PATH
# for openmpi(这个库直接用安装好的,搜一下which mpirun/mpich)
export PATH=$DIR/mpich/bin:$PATH
# for grib2
export JASPERINC=$DIR/grib2/include
export JASPERLIB=$DIR/grib2/lib
希望对你有帮助
|
|