08月19, 2017

编译WRF时报错ld: cannot find -lhdf5_fortran

很明显,是缺少了HDF5的fortran库。

查阅了HDF5的文档,发现要在configure时加上--enable-fortran --enable-fortran2003,不过根据官方文档的说法,似乎两个选项同时存在的时候,只有--enable-fortran2003生效。

总的来说使用类似这种./configure --prefix=$WORKHOME/lib --enable-fortran --enable-fortran2003肯定就没问题了。

本文链接:https://debug.fanzheng.org/post/hdf5-error-when-compiling-WRF.html

-- EOF --

Comments

评论加载中...

注:如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理。