今天在 CentOS 5.6 64位的机器上配置Func被控端时,在安装设置完 Func 及 Certmaster 后,启动 Funcd 提示如下错误
[root@certmaster ~]#service funcd start Starting func daemon: Traceback (most recent call last): File "/usr/bin/funcd", line 20, in from func.minion import server File "/usr/local/lib/python2.6/site-packages/func/minion/server.py", line 31, in import func.jobthing as jobthing File "/usr/local/lib/python2.6/site-packages/func/jobthing.py", line 17, in import dbm ImportError: No module named dbm意思就是没有名为 dbm 的模块。那当然就需要安装。从新编译了 Python 发现确实是少了dbm
Failed to find the necessary bits to build these modules: _bsddb _sqlite3 _tkinter bsddb185 dbm dl gdbm p_w_picpathop readline sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. running build_scripts一开始用 yum install dbm 发现没有任何包可以安装。接着运行 yum install gdbm gdbm-devel 一共安装了3个相关包
gdbm-1.8.0-26.2.1.i386 gdbm-devel-1.8.0-26.2.1.x86_64 gdbm-devel-1.8.0-26.2.1.i386这时候,在重新编译安装Python后,就没有提示找不到 DBM 和 GDBM 了,也可以正常启动 funcd 服务了。
本文出自 “” 博客,请务必保留此出处