Centos上openstack源代码安装(二)
八、修正qemu-img
openstack使用的是最新版本的qemu-img,有可能使用不同的命令行选项。为了避免这种情况,我们不得不重新编译整个qemu-kvm二进制包,
1.添加如下修改到文件
mv /usr/bin/qemu-img /usr/bin/qemu-img.bin cat > /usr/bin/qemu-img <<EOF ARGS="\$*" CHANGED_ARGS=`echo \$* | sed "s/-o cluster_size=2M,backing_file=/-b /g"` /usr/bin/qemu-img.bin \$CHANGED_ARGS EOF
现在,使用easy_install-2.6安装python模块,
easy_install-2.6 twisted sqlalchemy mox greenlet carrot python-daemon eventlet tornado \ IPy routes lxml MySQL-python sphinx webob netaddr paste pastedeploy sqlalchemy-migrate \ glance Cheetah python-novaclient easy_install-2.6 python-daemon==1.5.5 easy_install-2.6 lockfile==0.8 easy_install-2.6 boto==1.9b easy_install-2.6 python-gflags==1.4
确认所有的包都正确安装,有可能由于某些原因一些包并没有安装成功。如同python2.6-libxml2模块,注意--with-python和--prefixflags
--with-python明确我们再次编译,使用python2.6
wget -c "ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz" tar -zxvf libxml2-2.7.3.tar.gz cd libxml2-2.7.3 ./configure --with-python=/usr/bin/python26 --prefix=/usr make all make install cd python python2.6 setup.py install cd ..
我们将要使用M2Crypto,但是首先需要修改opensslconf.h
sed -i 's_opensslconf-\(.*\)_/usr/include/openssl/opensslconf-\1_' /usr/include/openssl/opensslconf.h easy_install-2.6 M2Crypto==0.20.2
按照下面安装
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.9.tar.gz tar -zxvf coreutils-8.9.tar.gz cd coreutils-8.9 ./configure make sudo cp src/truncate /usr/bin/
相关推荐
haitianisgood 2020-07-21
changecan 2020-11-19
ECSHOP专属建设 2020-11-13
88427810 2020-11-02
步知道 2020-10-27
Junzizhiai 2020-10-10
jackalwb 2020-10-05
小网管 2020-09-03
shiwenqiang 2020-09-14
85251846 2020-09-14
summerinsist 2020-08-21
87901735 2020-08-19
PinkBean 2020-08-11
85407718 2020-08-09
MichelinMessi 2020-07-30
suosuo 2020-07-28
CARBON 2020-07-28
lizhengfa 2020-07-27
88427810 2020-07-26