您的位置:首页 > 其它

Bug解决方案

2015-08-04 17:28 232 查看
安装Netcdf4.1.3,出现

> checking for Fortran flag to compile .f90 files... unknown
> configure: error: Fortran could not compile .f90 files


export FC=gfortran

export F90FLAGS='-fPIC'

./configure --with-hdf5=/usr/local --with-zlib=/usr/local --with-szlib=/usr/local \
--prefix=/usr/local --enable-netcdf-4 --disable-dap
make all install >& make-output


bash/ksh:

  export FC=gfortran

csh/tcsh:

  setenv FC gfortran
F90FLAGSFortran 90 compile flagsbash/ksh:

  export F90FLAGS='-fPIC'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: