爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 54767|回复: 43

[其他] 求教关于NCL中libc.so.6和libgfortran.so.3找不到的问题

[复制链接]
发表于 2011-10-31 21:33:23 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
因为是新手,刚开始学,所以只能从最简单的程序开始,但是运行ncl test.ncl的时候老是会报错。
我开始使用的是ncl6.0.0,结果老是提示ncl:/lib64/libc.so.6:version'GLIBC_2.7'not found(required by ncl)
然后我尝试了下ncl5.2.1,结果显示ncl: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

然后我就郁闷了,感觉像是大型机的库缺失,所以我试着在自己的单机上,用同样的版本和程序,运行成功了,不过因为中间提示补充下载了什么东西,所以我就不知道如果我还是想要在这个大型机上运行该怎么办了,请问是不是库缺失导致的,如果是的话貌似我得去找管理员了,小白在这里谢谢各位大侠了~
密码修改失败请联系微信:mofangbao
发表于 2011-10-31 21:46:05 | 显示全部楼层
我也是初学者,也不会,我现在还没有在服务器上安装成功呢,愁死了,不过我好像看到有描述你这个问题的,就附上来给你:http://www.ncl.ucar.edu/Download/linux.shtml
具体是下面这样的:
For most Linux binaries, NCL was built using gcc and gfortran. This may cause a dependency on a file called "libgfortran.so.x".
If you have a different version of gfortran installed on your system than what NCL was built with, then you may get an error message that "libgfortran.so.x can't be found".

If you see this, then you can try one of these things:

Try to find the libgfortran.so.x file that it is complaining about. You can try the "locate" command. For example if the file is "libgfortran.so.1":

   locate libgfortran.so.1
If found, add this path to your LD_LIBRARY_PATH environment variable.

For example, if "libgfortran.so.1" is the file you need, and it is in /usr/local/lib, then look at the instructions below, depending on what shell you are running, and depending on whether LD_LIBRARY_PATH is already set:

   env | grep LD_LIBRARY_PATH
From csh or tcsh, if not set:
    setenv LD_LIBRARY_PATH /usr/local/lib
From csh or tcsh, if already set:
    setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib
From bash or ksh, if not set:
    export LD_LIBRARY_PATH=/usr/local/lib
From bash or ksh, if already set:
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
From sh, if not set:
    LD_LIBRARY_PATH=/usr/local/lib
    export LD_LIBRARY_PATH
From sh, if already set:
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH

Install the "compat-libgfortran" runtime library. See one of these sites for starters:

http://rpmfind.net/linux/rpm2htm ... mpat-libgfortran-41
https://admin.fedoraproject.org/ ... 7a1a58108960859779f

Install the version of gfortran that your version of NCL was built with. (It is possible to have multiple versions of gfortran installed on the same system without conflict.)
It may then be necessary to set the LD_LIBRARY_PATH environment variable to the path of the "libgfortran.so.x" file.


If all else fails, then send email to ncl-install@ucar.edu. You need to be a member in order to post.
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-10-31 21:58:03 | 显示全部楼层

恩呢,我看到这个了,但是libgfortran.so.3是locate不到,而libc.so.6是能找到的,就是里面版本不够,我看这个它的意思好像是要安装,但是这些东西都在库文件里呀,我木有权限应该是安装不了的吧,根据给的地址,libgfortran.so.3倒是搜到了一堆,不过貌似木有ifort编译器的,貌似也不太懂,libc.so.6是找不到
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 09:31:40 | 显示全部楼层
陪着你的路人 发表于 2011-10-31 21:58
恩呢,我看到这个了,但是libgfortran.so.3是locate不到,而libc.so.6是能找到的,就是里面版本不够,我看 ...

我用的也是NCL6.0.0,试运行了xy04n.ncl,出现的提示是:
ncl: /lib64/libgcc_s.so.1: version 'GCC_4.0.0' not found(required by ncl)
ncl: /usr/lib64/libstdc++.so.6: version 'CXXABI_1.3.1' not found(required by ncl)
ncl: /lib64/tls/libc.so.6: version 'GLIBC_2.4'not found(required by ncl)

不知道怎么解决,不知道楼楼有没有解决。
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 09:46:03 | 显示全部楼层
你可以下载一个对应版本的编译器,然后放在自己的/home dir下面(比如/home/ztftom/gcc),之后更改环境里的PATH变量和LD_LIBRARY_PATH变量,把/home/ztftom/gcc下的bin和lib分别加进去。
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 09:48:51 | 显示全部楼层
这里看到的情况大部分是lib不对,可以尝试只用下载lib,然后增加LD_LIBRARY_PATH。如果可行,就不用下载gcc程序了。
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 10:05:49 | 显示全部楼层
ztftom 发表于 2011-11-1 09:48
这里看到的情况大部分是lib不对,可以尝试只用下载lib,然后增加LD_LIBRARY_PATH。如果可行,就不用下载gcc ...

能否给个链接呢?
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 10:17:40 | 显示全部楼层
妞胖胖 发表于 2011-11-1 10:05
能否给个链接呢?

这个要自己去找一下吧,应该不难找到。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-11-1 17:10:32 | 显示全部楼层
ztftom 发表于 2011-11-1 10:17
这个要自己去找一下吧,应该不难找到。

啊,囧死了,昨天是找不到那两个东西,我发现可能是安装的版本不对,今天重新下了一个,结果今天运行的时候,直接是这样子的
warning:GKS:GOPWK: --X driver error: DISPLAY environment variable not set
warning:GKS:GESC: --SPECIFIED WORKSTATION IS NOT OPEN
fatal:Workstation with PID#8 is not open
fatal:Unable to open Workstation-Can't Create
fatal:Unable to access object with id:-4
fatal:_NhlCreate:Invalid Parent id #-4
fatal:NhlDraw: Invalid Layer Id: -4
fatal:Unable to update Workstation with PID#-4
fatal:Unable to clear Workstation with PID#-4
fatal:Execute: Error occurred at or near line 3077 in file /home/lux/other/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:Execute: Error occurred at or near line 8657 in file /home/lux/other/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:Execute: Error occurred at or near line 11 in file test1.ncl


……我彻底不懂了……肿么一天一个样啊……
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-11-1 17:10:53 | 显示全部楼层
ztftom 发表于 2011-11-1 10:17
这个要自己去找一下吧,应该不难找到。

请教下,这个情况该肿么办呢……
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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