简体   繁体   English

为什么我无法安装openstack浏览器?

[英]why i failed to install openstack glance?

i try to install glance using command 我尝试使用命令安装扫视

(os)mirror0@lab:~/tmp/glance$ python setup.py install

but failed, why? 但是失败了,为什么呢?

src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOENT’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NOCDATA’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0@lab:~/tmp/glance$ echo $?
1


(os)mirror0@lab:~/tmp/glance$ python -V
Python 2.6.6

Edit 1 : i have installed libxml2-dev, still failed to install glance, why? 编辑1 :我已经安装了libxml2-dev,仍然无法安装一目了然,为什么?

src/lxml/lxml.etree.c:181079: error: ‘XML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘XML_PARSE_RECOVER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:181374: error: ‘HTML_PARSE_NONET’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182031: error: ‘XML_XPATH_NUMBER_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182041: error: ‘XML_XPATH_UNFINISHED_LITERAL_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182051: error: ‘XML_XPATH_VARIABLE_REF_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182061: error: ‘XML_XPATH_INVALID_PREDICATE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182071: error: ‘XML_XPATH_UNCLOSED_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182081: error: ‘XML_XPATH_INVALID_CHAR_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182116: error: ‘XML_XPATH_UNDEF_VARIABLE_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182126: error: ‘XML_XPATH_UNDEF_PREFIX_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182136: error: ‘XML_XPATH_UNKNOWN_FUNC_ERROR’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182146: error: ‘XML_XPATH_INVALID_OPERAND’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182156: error: ‘XML_XPATH_INVALID_TYPE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182166: error: ‘XML_XPATH_INVALID_ARITY’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182176: error: ‘XML_XPATH_INVALID_CTXT_SIZE’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182186: error: ‘XML_XPATH_INVALID_CTXT_POSITION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182532: error: ‘LIBXSLT_VERSION’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182544: error: ‘xsltLibxsltVersion’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘__pyx_v_4lxml_5etree_XSLT_DOC_DEFAULT_LOADER’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182556: error: ‘xsltDocDefaultLoader’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: warning: implicit declaration of function ‘xsltSetLoaderFunc’
src/lxml/lxml.etree.c:182565: error: ‘xsltDocLoaderFunc’ undeclared (first use in this function)
src/lxml/lxml.etree.c:182565: error: expected ‘)’ before ‘__pyx_f_4lxml_5etree__xslt_doc_loader’
src/lxml/lxml.etree.c:182816: warning: implicit declaration of function ‘xsltRegisterAllExtras’
src/lxml/lxml.etree.c:182825: warning: implicit declaration of function ‘exsltRegisterAll’
error: Setup script exited with error: command 'gcc' failed with exit status 1
(os)mirror0@lab:~/tmp/glance$ dpkg -l | grep libxml2
ii  libxml2                              2.7.8.dfsg-2+squeeze5               GNOME XML library
ii  libxml2-dev                          2.7.8.dfsg-2+squeeze5               Development files for the GNOME XML library
ii  libxml2-utils                        2.7.8.dfsg-2+squeeze5               XML utilities
ii  python-libxml2                       2.7.8.dfsg-2+squeeze5               Python bindings for the GNOME XML library
ii  python-lxml                          2.2.8-2                             pythonic binding for the libxml2 and libxslt libraries

Try to install Libxslt . 尝试安装Libxslt For Ubuntu: 对于Ubuntu:

sudo apt-get install libxslt1.1 libxslt1-dev python-libxslt1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在不安装Nova的情况下安装OpenStack的Swift(OpenStack存储基础架构)吗? - Can I install Swift (OpenStack Storage Infrastructure) of OpenStack without installing Nova? 当我使用 InstallShield 安装我的应用程序时,我收到一条“安装失败”消息。 有没有办法让我知道它为什么失败? - I am getting an "Installation Failed" message when I install my app with InstallShield. Is there a way for me to see why it failed? 如何在OpenStack上安装alluxio1.2 - How install alluxio1.2 on openstack 是否可以在ubuntu桌面操作系统中安装openstack控制器节点 - is it possible to install openstack controller node in a ubuntu desktop OS 我使用“ sudo pip卸载matplotlib”安装matplotlib,但失败 - I use “sudo pip uninstall matplotlib” to install matplotlib, but failed 为什么我不能在 Python 上安装模块 - Why can I not install modules on Python pip install robotsframework-desktolibrary:失败。 为什么不能安装? - pip install robotframework-desktoplibrary : failed. Why can't install? 为什么我不能在 Anaconda 中安装漂亮的? - Why I cannot install prettytable in Anaconda? 为什么不能按一定顺序安装? - Why can I not install in the certain order? 为什么我不能在 mac 上运行 apt install? - Why cant I run apt install on mac?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM