标签:
最近项目要用到一个叫ecflow的东西,百度之,发现资料很少,不过幸亏有帮助文档,地址为:
https://software.ecmwf.int/wiki/display/ECFLOW/Home
官方解释:
ECFLOW is a client/server workflow package that enables users to run a large number of programs (with dependencies on each other and on time) in a controlled environment. It provides reasonable tolerance for hardware and software failures, combined with restart capabilities. It is used to control he running of operational and research suites at ECMWF.
ECFLOW是一个C/S工作流包,允许用户在一个可控的环境下运行多个程序。关键它运行在linux系统中,而我是linux小白一个~
废话不多说,试着编译,官方安装说明:https://software.ecmwf.int/wiki/display/ECFLOW/Installation
环境:vmware10.0.3、redhat 6.3
第一步:安装python2.7
纠结~~~系统自带的python版本为2.6,因此,自己在网上下载python2.7,准备编译,按照网上的步骤,先configure,怎么都不对,通不过,错误为:
./config.status: line 331: syntax error near unexpected token `newline‘
网上未找到靠谱解决方案,换个最新的python版本,还是不行,折腾来去,最后,用wget在linux中直接下载python,再编译,成功了!汗啊,什么情况?至今未找到原因
后来在编译WxWidget时出现了一样的问题,从容解决之~
第二步:对于ecflowView,准备Xlib, X11, XMotif
编译ecflowView之前,直接用yum源安装了openmotif,但编译一直不成功,看帮助,发现这么个东西
Xlib, X11, XMotif for ecflowview
难道是Xlib,X11没装?
带着这个疑问,用yum rearch Xlib/X11,把该装的都装了,还是不行,难道是boost没编译?
开始编译boost!
还是不行~~
继续在网上搜寻,发现了这么一篇博文:http://blog.itpub.net/7275929/viewspace-1026848/
豁然开朗,充分利用yum,开始用yum search **搜索,把libXpm也给装了,至此ecflowView才装上。
第三步:按步骤编译ecflow源码即可。
遇到的问题:
1、升级python到2.7后,yum无法使用,出现如下错误:
将centos 部分程序更新了下,发现再次执行yum 的时候提示 No module named yum
------------------------------------------------------------------------------------------------
出错提示
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
------------------------------------------------------------------------------------------------
查找资料后说是python 版本的问题。
[root@clients ~]# python --version
Python 2.6.5
------------------------------------------------------------------------------------------------
[root@clients ~]# whereis python
python: /usr/src/Python-2.6.5/python /usr/bin/python2.4 /usr/bin/python2.6 /usr/bin/python /usr/bin/python2.6-config /usr/lib/python2.4 /usr/lib/python2.6 /usr/local/bin/python2.6 /usr/local/bin/python /usr/local/bin/python2.6-config /usr/local/lib/python2.6 /usr/include/python2.4 /usr/include/python2.6 /usr/share/man/man1/python.1.gz /usr/share/man/man1/python.1
------------------------------------------------------------------------------------------------
解决办法:
python有两个版本,2.6和2.7,由于yum命令不兼容2.7
修改yum文件
#vi /usr/bin/yum
将 #!/usr/bin/python 修改为 #!/usr/bin/python2.6
再次运行yum,一切正常
标签:
原文地址:http://www.cnblogs.com/weiweiting/p/4190905.html