zoukankan      html  css  js  c++  java
  • Netcdf安装

    终于安装成功,记录如下,以供他人参考:
    1.下载netcdf安装包,from:
    http://www.unidata.ucar.edu/downloads/netcdf/index.jsp 
    我下载的目前最新版本4.1.3,但是其实4.1.1就够用了,因为安装过程中我disable掉了4.1.3中比4.1.1改进的地方,比如,hdf4.
    2.解压 tar -zxvf netcdf-4.1.3.tar.gz
    3. 在解压后的netcdf-4.1.3所在目录执行:
    ./configure --disable-dap --disable-netcdf-4 --prefix=/usr/local/netcdf
    注意:上面红色的两个选项是他人很多次实验后证明必须的(参考资料1)。--disable-dap的原因是缺少一个‘curl’的lib, --disable-netcdf-4是报错中提出的解决办法,尽管我个人暂时没有搞清楚为什么。不写这两个,在configure的时候就会报错,导致后面make失败。
    4. make
    5. make install,提示安装成功的同时,还会提醒make check,下一步进行。
    6. make check

    备注:以下为各个步骤执行命令的解释:

     $ ./configure

     The configuration script will set up the Makefiles that will be used to build the NetCDF libraries and utilities. It will also set up the installation directory for the default location of /usr/local.

     If you would like to install the libraries in another location, use this configure command:

    $ ./configure --prefix=/your/desired/install/directory)

    $ make----Make the libraries

    When the configuration step completes successfully, you can build the libraries using ‘make’.

    $ make check-----Testing NetCDF on Linux*

    You can test your NetCDF libraries using ‘make check’.

    $ make install------Installing NetCDF on Linux*

    Install NetCDF libraries using ‘make install’.

     This will install the NetCDF libraries, include files, and utilities in the default location of /usr/local or the location specified in the configuration step with the --prefix= option.

    Congratulations! You have successfully installed netCDF!    |
    |                                                             |
    | CAUTION:                                                    |
    |                                                             |
    | If you have not already run "make check", then we strongly  |
    | recommend you do so. It does not take very long.            |
    |                                                             |
    | Before using netCDF to store important data, test your      |
    | build with "make check".                                    |
    |                                                             |
    | NetCDF is tested nightly on many platforms at Unidata       |
    | but your platform is probably different in some ways.       |
    |                                                             |
    | If any tests fail, please see the netCDF web site:          |
    | http://www.unidata.ucar.edu/software/netcdf/                |
    |                                                             |
    | NetCDF is developed and maintained at the Unidata Program   |
    | Center. Unidata provides a broad array of data and software |
    | tools for use in geoscience education and research.         |
    | http://www.unidata.ucar.edu    

    ### set for netcdf
    setenv NETCDF /$M3LIB/netcdf
    setenv PATH $NETCDF/bin:$NETCDF/lib:$NETCDF/include:$NETCDF/man:$PATH
    setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1

    终端输入ncdump显示版本信息安装成功

    路漫漫其修远兮 吾将上下求索
  • 相关阅读:
    python按行读取并替换
    python 爬取网页内容
    file.write(str),file.writelines(sequence)
    04Spring_bean 后处理器(后处理Bean),BeanPostProcessor ,bean创建时序,动态代理
    03Spring_bean的创建和作用域以及生命周期
    02Spring_Ioc和DI介绍
    01Spring_基本jia包的导入andSpring的整体架构and怎么加入日志功能
    错题724-java
    05传智_jbpm与OA项目_部门模块中增加部门的jsp页面增加一个在线编辑器功能
    04传智_jbpm与OA项目_部门模块改进_直接在BaseAction中实现ModelDriven<T>
  • 原文地址:https://www.cnblogs.com/hbmlml/p/4238016.html
Copyright © 2011-2022 走看看