jhonglei

OpenCAP安装配置所遇到的问题及解决方案

OpenCAP安装配置所遇到的问题及解决方案

版本:openxcap_1.0.7.tar.gz
编译平台: RHEL5.3/gcc 4.1.2/Python 2.4.3

Download and install OpenXCAP

The software has the following dependencies, which you must install on your operating system:


但是,上面没有提到需要安装Zope,这就是出现 /usr/bin/openxcap start 无法启动的原因,会出现zope命名空间找不到的错误
网址:http://www.zope.org
注意事项:

  • Zope对于Python有特殊的版本依赖关系,不能太早,也不能太新;例如 
         Zope 2.11/2.10 requires Python 2.4.5 (Python 2.4.4 is still acceptable). Older Python versions are no longer supported. Python 2.5 is not supported at this time.
             Zope-2.11.2-final.gz  <-- Python-2.4.6.tar.gz
             Zope-2.10.7-final.gz  <-- Python-2.4.6.tar.gz
          这就是出现 error: package directory 'build/lib/linux-i686-2/4/zope/app' does not exist 的原因
         例如RHEL5.3自带的版本是Python2.4.3,所以不行。要先下载Python编译安装后,再重新编译Zope(如果原来因为Python版本错误安装不成功的话,要把原来的Zope编译目录删除,重新解压:rm -rf Zope-2.11.2-final;tar -zxvf Zope-2.11.2-final.gz )。因此,上面所说的需要Python 2.5 or newer是错误的。

$ ./configure --prefix=/usr/local/zope2 --with-python=/usr/local/bin/python2.4
$ make
# make install

这样:通过
$ /usr/bin/openxcap start
就可以启动了oepnxcap了

posted on 2009-04-13 21:01 honglei 阅读(1133) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理