安装cobbler时报错及解决

1.      Cobbler安装

yum -y install cobbler

2.      启动cobbler

[root@localhost cobbler]# setenforce 0

[root@localhost cobbler]# getenforce

Permissive

[root@localhost cobbler]# service cobblerdstart

Starting cobbler daemon: No module namedctypes

Traceback (most recent call last):

 File "/usr/bin/cobblerd", line 76, in main

   api = cobbler_api.BootAPI(is_cobblerd=True)

 File "/usr/lib/python2.4/site-packages/cobbler/api.py", line127, in __init__

   module_loader.load_modules()

 File"/usr/lib/python2.4/site-packages/cobbler/module_loader.py", line 62,in load_modules

   blip = __import__("modules.%s" % ( modname), globals(), locals(),[modname])

 File "/usr/lib/python2.4/site-packages/cobbler/modules/authn_pam.py",line 53, in ?

   from ctypes import CDLL, POINTER, Structure, CFUNCTYPE, cast, pointer,sizeof

ImportError: No module named ctypes

                                                          [  OK  ]


解决:

yum install -ypython-ctypes

# service cobblerd start

Starting cobbler daemon:                                   [  OK  ]


cobbler还需要:

# rpm -qpR cobbler-2.2.3-2.el5.noarch.rpm

python >= 2.3

httpd

tftp-server

mod_wsgi

createrepo

python-cheetah

python-netaddr

python-simplejson

python-urlgrabber

PyYAML

rsync

mkisofs

yum-utils

/sbin/chkconfig

/sbin/chkconfig

/sbin/service

/bin/sh

/bin/sh

/bin/sh

rpmlib(PayloadFilesHavePrefix) <= 4.0-1

rpmlib(CompressedFileNames) <= 3.0.4-1



你可能感兴趣的:(安装cobbler时报错及解决)