Building horizon fails in fedora 17

Asked by VaraKalyan

creating build/temp.linux-x86_64-2.7/src/lxml

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/opt/horizon/.venv/build/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o

In file included from src/lxml/lxml.etree.c:314:0:

/opt/horizon/.venv/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Matthias Runge (mrunge) said :
#1

yum install libxml-devel will help you.

Or you take the package provided.

Revision history for this message
VaraKalyan (varakalyanmaddi) said :
#2

Even after installing .. its gets failed.

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron /resources/xsl/iso-schematron-xslt1

running build_ext

building 'lxml.etree' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

creating build/temp.linux-x86_64-2.7/src/lxml

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe r-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fs tack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/opt/horizon/.venv/build/lxm l/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o

In file included from src/lxml/lxml.etree.c:314:0:

/opt/horizon/.venv/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or director y

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /opt/horizon/.venv/bin/python -c "import setuptools;__file__='/opt/horizon/.venv/build/lxml/setup.py';exec(compile(op en(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-yEFOHC-record/install-record.txt --s ingle-version-externally-managed --install-headers /opt/horizon/.venv/include/site/python2.7 failed with error code 1 in /opt /horizon/.venv/build/lxml
Storing complete log in /root/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade -r /opt/horizon/requirements.txt" failed.
None
[root@chsree1869001 horizon]#

Revision history for this message
Matthias Runge (mrunge) said :
#3

yum provides "libxml/xmlversion.h" gives you....

libxml2-devel

so you should yum install that

Can you help with this problem?

Provide an answer of your own, or ask VaraKalyan for more information if necessary.

To post a message you must log in.