公司服务器多数都用的centos,这个是大环境,改不了,只好研究怎么安装buildbot-slave.
buildbot-master倒是没有问题,可控,自己弄了一个ubuntu14来玩。
centos 6.5 root权限需要安装的包
- gcc
- python-dev
yum install gcc python-dev
centos 6 自带的python是2.6.6,暂时先看看就适用它吧。
pip install virtualenv
在root权限下把virtualenv给安装了,后面就可以到普通用户折腾去了。
useradd -m bot
su - bot
virtualenv env
source bin/active
pip install buildbot-slave==0.8.9
。。。。
Found existing installation: buildbot-slave 0.8.10
Uninstalling buildbot-slave-0.8.10:
Successfully uninstalled buildbot-slave-0.8.10
Running setup.py install for buildbot-slave
changing mode of build/scripts-2.6/buildslave from 664 to 775
/home/bot/envbot/lib/python2.6/site-packages/setuptools/command/egg_info.py:171: DeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
writer = ep.load(installer=installer)
changing mode of /home/bot/envbot/bin/buildslave to 775
Successfully installed buildbot-slave-0.8.9 twisted-14.0.2
(envbot)[bot@localhost envbot]$
搞定。