1.NetCDF4.1.3安裝
sudo ./configure --disable-netcdf-4 --prefix=/../../..
必須安裝在指定目錄下,設置環境,如果沒有安裝在指定目錄下,那麼後續的WPS安裝根本無法成功
2.PGI安裝
cd /../../pgi
./install
出現pgf90-warning-No files to process則成功
3.zlib-1.2.3 libpng1.2 jasper-1.900.1安裝
tar zxvf /../../..
cd /../../..
./configure
make && make install
如果安裝libpng出現下述情況:
checking whether to enable maintainer-specific portions of Makefile ... no
checking for gcc ... /use/bin/gcc
checking whether the C compiler works .... no
configure:error:in '/usr/local/wrf/libpng-1.2.50'
configure:error:C compiler cannot create executables(翻譯:C編譯器無法創建可執行文件)
解決方法:sudo ./configure
make && make install
/usr/local/lib/libz.a:error adding symbols:Bad valude
collect2:error:ld returned 1 exit status
make[1]:***[libpng12.la] 錯誤1
make:***[all] 錯誤2
解決方法:進入zlib目錄下,make clean
sudo CFLAGS="-o3 -fPIC" ./configure
make && make install
再進入libpng目錄下sudo ./configure ....成功