爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: 夏夜

ncview安装

[复制链接]
发表于 2014-7-23 12:42:56 | 显示全部楼层
其实呀,也可以用Linux系统(或扩展软件库)中带的ncview。

我在Centos 6.5上就是这样安装的。记得好像是装上epel repository后就能搜到ncview了。
再yum install 就行。

这时netcdf可能是gcc的,也是Linux安装系统中自带的。

评分

参与人数 1金钱 +20 收起 理由
letsdo8 + 20

查看全部评分

密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2014-7-23 12:44:47 | 显示全部楼层
bjj948 发表于 2014-7-23 12:42
其实呀,也可以用Linux系统(或扩展软件库)中带的ncview。

我在Centos 6.5上就是这样安装的。记得好像 ...

Centos已有7.0版了,还没安装过。不过一般新版系统的额外软件包要少一些。

评分

参与人数 1金钱 +20 收起 理由
letsdo8 + 20

查看全部评分

密码修改失败请联系微信:mofangbao
发表于 2014-7-23 13:10:17 | 显示全部楼层
Steps to install ncview on Centos 6.5 are as follows:

wget http://dl.fedoraproject.org/pub/ ... ease-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

vi /etc/yum.repos.d/remi.repo

yum install ncview

评分

参与人数 1金钱 +20 收起 理由
letsdo8 + 20

查看全部评分

密码修改失败请联系微信:mofangbao
回复 支持 1 反对 1

使用道具 举报

发表于 2014-7-23 13:11:15 | 显示全部楼层
bjj948 发表于 2014-7-23 13:10
Steps to install ncview on Centos 6.5 are as follows:

wget http://dl.fedoraproject.org/pub/epel/6 ...

Actually, you could install a lot of other packages after the above steps

评分

参与人数 1金钱 +20 收起 理由
letsdo8 + 20

查看全部评分

密码修改失败请联系微信:mofangbao
发表于 2014-7-23 13:15:20 | 显示全部楼层
bjj948 发表于 2014-7-23 13:10
Steps to install ncview on Centos 6.5 are as follows:

wget http://dl.fedoraproject.org/pub/epel/6 ...

edit /etc/yum.repos.d/remi.repo and change enabled=0 to enabled=1 to enable it permanently.

vi /etc/yum.repos.d/remi.repo

评分

参与人数 1金钱 +20 收起 理由
letsdo8 + 20

查看全部评分

密码修改失败请联系微信:mofangbao
发表于 2014-7-23 13:18:01 | 显示全部楼层
本帖最后由 bjj948 于 2014-7-23 13:21 编辑

centos 6推荐使用epel源:
http://www.codesky.net/article/201110/170019.html

CentOS6.4添加epel源: http://www.cncentos.com/forum.php?mod=viewthread&tid=1751&extra=

评分

参与人数 1金钱 +20 收起 理由
letsdo8 + 20

查看全部评分

密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-7-23 14:06:20 | 显示全部楼层
bjj948 发表于 2014-7-23 13:18
centos 6推荐使用epel源:
http://www.codesky.net/article/201110/170019.html

服务器上red hat也和centos一样吗?服务器没有连外网,现在ncview所需要的netcdf 4.2和hdf5 都安装了
就是./configure怎么设置
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-7-23 14:11:16 | 显示全部楼层
bjj948 发表于 2014-7-23 13:18
centos 6推荐使用epel源:
http://www.codesky.net/article/201110/170019.html

ncview-2.1.2
nco-4.4.4

我是想安装ncview之后再安装nco,他们的步骤都类似。第一步都是./configure 然后就是怎么设置,好像是要指定netcdf 什么目录。具体怎样还没搞清楚
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-7-23 15:00:07 | 显示全部楼层
[root@mgmt ncview-2.1.2]# ./configure --with-nc-config=/usr/local/GEOS-Chem-Libraries/bin/nc-config
user specified nc-config is /usr/local/GEOS-Chem-Libraries/bin/nc-config
checking for nc-config... yes
Netcdf library version: netCDF 4.2
Netcdf library has version 4 interface present: yes
Netcdf library was compiled with C compiler: gcc
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for the Athena widgets...
checking for XtWindow in -lXt... yes
checking for XawScrollbarSetThumb in -lXaw... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking X11/Xaw/Simple.h usability... yes
checking X11/Xaw/Simple.h presence... yes
checking for X11/Xaw/Simple.h... yes
X Athena widget (Xaw) libraries: -lXaw -lXt
checking for X11 library...
checking for XPutImage in -lX11... yes
X11 libraries: -lX11
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking /usr/local/include/udunits2.h usability... no
checking /usr/local/include/udunits2.h presence... no
checking for /usr/local/include/udunits2.h... no
checking /usr/include/udunits2.h usability... no
checking /usr/include/udunits2.h presence... no
checking for /usr/include/udunits2.h... no
checking /root/include/udunits2.h usability... no
checking /root/include/udunits2.h presence... no
checking for /root/include/udunits2.h... no
checking /sw/include/udunits2.h usability... no
checking /sw/include/udunits2.h presence... no
checking for /sw/include/udunits2.h... no
** Could not find the udunits2.h file, udunits support will not be included **
checking for ut_read_xml in -ludunits2... no
checking for /usr/local/lib/libudunits2.a... no
checking for /usr/lib/libudunits2.a... no
checking for /lib/libudunits2.a... no
checking for /root/lib/libudunits2.a... no
checking for /sw/lib/libudunits2.a... no
************************************************************************
Note: udunits2 support is NOT enabled, because I could not find the
location of the udunits2 include file 'udunits2.h' or library file
'libudunits2.a'.  Ncview uses the udunits2 package to format date strings
with units of the form 'days since 1900-01-01'.  If you do not use
these udunits2-standard date formats, then don't worry about the lack
of udunits2 support.  If you DO use udunits2 format date strings, and
you want the udunits2 support, then you must tell me where to find
the udunits2 package by giving arguments to configure, as follows:
  ./configure -with-udunits2_incdir=include_directory -with-udunits2_libdir=library_directory
************************************************************************
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking /usr/local/include/png.h usability... no
checking /usr/local/include/png.h presence... no
checking for /usr/local/include/png.h... no
checking /usr/include/png.h usability... no
checking /usr/include/png.h presence... no
checking for /usr/include/png.h... no
checking /root/include/png.h usability... no
checking /root/include/png.h presence... no
checking for /root/include/png.h... no
checking /sw/include/png.h usability... no
checking /sw/include/png.h presence... no
checking for /sw/include/png.h... no
** Could not find the png.h file, so -frames support will not be included  **
** Install the PNG library (and development headers) to fix this           **
checking for png_write_png in -lpng... no
checking for /usr/local/lib/libpng.so... no
checking for /usr/lib/libpng.so... no
checking for /lib/libpng.so... no
checking for /root/lib/libpng.so... no
checking for /sw/lib/libpng.so... no
************************************************************************
Note: the -frames option is NOT enabled, because I could not find the
location of the PNG include file 'png.h' or library file
'libpng.so'.  Ncview uses the png package to dump out the frames viewed,
which is an easy way to make an mpeg video of the data if you want.
If you do not want this feature, then don't worry about the lack
of png support.  If you DO want this, then you must install libpng, or tell
me where to find the png package by giving arguments to configure, as follows:
  ./configure -with-png_incdir=include_directory -with-png_libdir=library_directory
************************************************************************
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

----------- Configure Summary ----------
Compiler:
        CC                 = gcc
        Runtime path flags =  -Wl,-rpath,/usr/local/GEOS-Chem-Libraries/lib -Wl,-rpath,/usr/local/GEOS-Chem-Libraries/lib

UDUNITS:
        not found. Specify --with-udunits2_incdir=... and --with-udunits2_libdir=... flags to enable

NETCDF:
        VERSION          = netCDF 4.2
        COMPILER USED    = gcc
        NETCDF_CPPFLAGS  = -I/usr/local/GEOS-Chem-Libraries/include -I/usr/local/GEOS-Chem-Libraries/include
        NETCDF_LDFLAGS   = -L/usr/local/GEOS-Chem-Libraries/lib -L/usr/local/GEOS-Chem-Libraries/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lz
        NETCDF_V4        = yes

X:
        X_CFLAGS         =
        X11_LIBS         = -lX11
        XAW_LIBS         = -lXaw -lXt
        X_PRE_LIBS       =  -lSM -lICE
        X_LIBS           =
        X_EXTRA_LIBS     =

PNG:
        not found. Install libpng, or specify --with-png_incdir=... and --with-png_libdir=... flags to enable

ncview安装有错误,这是回复。
密码修改失败请联系微信:mofangbao
发表于 2014-7-24 07:13:25 | 显示全部楼层
夏夜 发表于 2014-7-23 15:00
[root@mgmt ncview-2.1.2]# ./configure --with-nc-config=/usr/local/GEOS-Chem-Libraries/bin/nc-config
...

这种安装方式是不容易,上面不是提示要安装libpng吗?

评分

参与人数 1金钱 +20 贡献 +2 收起 理由
letsdo8 + 20 + 2

查看全部评分

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表