Where can I get the missing xmlversion.h file when installing Keystone?

asked 2013-10-17 02:30:35 -0600

Mark Parker gravatar image

I was following the instructions on


to get Keystone installed. The git clone worked OK but the pip install failed with (last few lines):

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/swift/keystone/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:

/home/swift/keystone/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

Command /usr/bin/python -c "import setuptools;__file__='/home/swift/keystone/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Tdd6al-record/install-record.txt failed with error code 1 Storing complete log in /home/swift/.pip/pip.log

Any thoughts on how to proceed from here?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-10-18 04:05:29 -0600

Mark Parker gravatar image

I am now in a position to answer my own question! You do this to get the missing files:

$ sudo apt-get install libxml2-dev libxslt-dev

(I'm assuming Ubuntu here.)

edit flag offensive delete link more


It is libxml2-devel and libxslt-devel on Fedora.

Christian Berendt gravatar imageChristian Berendt ( 2015-02-06 03:53:07 -0600 )edit

Thnaks ....

raj gravatar imageraj ( 2016-03-09 03:20:05 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-17 02:30:35 -0600

Seen: 8,239 times

Last updated: Oct 18 '13