爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 10925|回复: 2

ncview安装失败

[复制链接]

新浪微博达人勋

发表于 2020-7-14 15:18:34 | 显示全部楼层 |阅读模式
5金钱
在类似PuTTY系统下想安装ncview
我做了以下五个步骤
tar -zxvf ncview-2.1.7.tar.gz
cd ncview-2.1.7
./configure
make
make install
然后出现了这些我看不太明白那地方出了问题
进入
ncview-2.1.7文件夹下后输入
./configure出现以下内容


configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for nc-config... yes
Netcdf library version: netCDF 4.6.1
Netcdf library has version 4 interface present: yes
Netcdf library was compiled with C compiler: gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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... /usr/bin/grep
checking for egrep... /usr/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... /usr/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... yes
checking udunits2.h presence... yes
checking for udunits2.h... yes
checking for ut_read_xml in -ludunits2... yes
checking for expat library (required by udunits2)...
checking for XML_GetBase in -lexpat... yes
Expat libraries (needed by udunits2): -lexpat -L. -ludunits2
****************************************************************************
Udunits library version 2 support enabled.
udunits2 dirs: include: .  library: .  libname: udunits2
****************************************************************************
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_write_png in -lpng... yes
ac_computer_gnu: yes
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/lib64
UDUNITS:
        UDUNITS2_LIBS     = -ludunits2
        UDUNITS2_CPPFLAGS = -I.
        UDUNITS2_LDFLAGS  = -L. -ludunits2 -lexpat -L. -ludunits2

NETCDF:
        VERSION          = netCDF 4.6.1
        COMPILER USED    = gcc
        NETCDF_CPPFLAGS  = -I/usr/include
        NETCDF_LDFLAGS   = -L/usr/lib64 -lnetcdf
        NETCDF_V4        = yes
X:
        X_CFLAGS         =
        X11_LIBS         = -lX11
        XAW_LIBS         = -lXaw -lXt
        X_PRE_LIBS       =  -lSM -lICE
        X_LIBS           =
        X_EXTRA_LIBS     =
PNG:
        PNG_LIBS         = -lpng
        PNG_CPPFLAGS     = -I.
        PNG_LDFLAGS      = -L. -lpng
再输入make
make  all-recursive
make[1]: Entering directory '/home/gkdkc/zdyt/ncview-2.1.7'
Making all in src
make[2]: Entering directory '/home/gkdkc/zdyt/ncview-2.1.7/src'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/gkdkc/zdyt/ncview-2.1.7/src'
make[2]: Entering directory '/home/gkdkc/zdyt/ncview-2.1.7'
make[2]: Leaving directory '/home/gkdkc/zdyt/ncview-2.1.7'
make[1]: Leaving directory '/home/gkdkc/zdyt/ncview-2.1.7'
再输入make install
Making install in src
make[1]: Entering directory '/home/gkdkc/zdyt/ncview-2.1.7/src'
make[2]: Entering directory '/home/gkdkc/zdyt/ncview-2.1.7/src'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c ncview '/usr/local/bin'
/usr/bin/install: cannot remove '/usr/local/bin/ncview': Permission denied
make[2]: *** [Makefile:274: install-binPROGRAMS] Error 1
make[2]: Leaving directory '/home/gkdkc/zdyt/ncview-2.1.7/src'
make[1]: *** [Makefile:675: install-am] Error 2
make[1]: Leaving directory '/home/gkdkc/zdyt/ncview-2.1.7/src'
make: *** [Makefile:286: install-recursive] Error 1
不知道问题出在哪里,有安装过的前辈麻烦帮我看一下感谢!!!

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 成长值: 0
发表于 2020-7-14 15:25:05 | 显示全部楼层
你没有权限在/usr/local 写入数据,
如果你有root权限的话用 sudo make install
如果是服务器的话,换个位置安装
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 成长值: 0
发表于 2020-7-14 15:27:31 | 显示全部楼层
换位置的话,用 ./configure —prefix=安装位置
另外你要设置path等环境变量,请自行百度
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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