开发者社区> 问答> 正文

devstack安装出错,提示error: command '/usr/bin/?400报错

devstack安装出错,提示error: command '/usr/bin/pkg-config' failed with exit status 1? 400 报错

@YueZheng 你好,想跟你请教个问题:

我按照您的博文“使用devstack部署openstack开发环境”,链接地址http://my.oschina.net/zyzzy/blog/74088来操作

出现如下提示:

“  InsecurePlatformWarning
  Using cached libvirt-python-1.2.13.tar.gz
Installing collected packages: libvirt-python
  Running setup.py install for libvirt-python
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-pt3omw/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7MXcak-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
    error: command '/usr/bin/pkg-config' failed with exit status 1
    
    ----------------------------------------
    Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-pt3omw/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7MXcak-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-pt3omw/libvirt-python


然后就退出安装了

因为对刚接触这块内容,完全无从下手,看了下,不知道是不是因为libvirt版本问题?下面是我机器上的版本

virsh version
编译使用的库:libvir 0.9.8
使用的库:libvir 0.9.8
使用的 API: QEMU 0.9.8
运行管理程序: QEMU 1.0.0


我使用的是ubuntu12.04 64位,clon了devstack之后,将目录权限改成了777,然后新建了stack用户,用stack安装的

我该怎么做?卸载了libvirt安装更高版本的?我直接apt-get提示说已经是最新了

抑或是其他原因造成的?希望得到您的帮助~十分感谢~


展开
收起
爱吃鱼的程序员 2020-06-03 11:41:44 684 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    我那篇文章已经太久远了,现在已经不适用了。

    现在的话,下载好devstack,进入目录,直接用普通用户权限执行stack.sh,不需要手动修改权限。

    比较容易出问题的是一些依赖包的下载,多试几次应该差不多。


    2020-06-03 11:41:56
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Borgaonkar-New-Adventures-In-Spying-3G-And-4G-Users-Locate-Track-And-Monitor 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载