Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyXML install - memmove does not exist on this platform

Tags:

python

gcc

Im trying to install pyxml library with pip but i get following errors during installation:

extensions/expat/lib/xmlparse.c:75:2: error: #error memmove does not exist on this platform, nor is a substitute available

I've tried to reinstall gcc compilator .

Current version i've is: gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3

OS: Kubuntu 13.04.

Can i somehow reinstall memmove library? As far as i know, it is delivered with string.h lib.

like image 548
Adam Szmyd Avatar asked Oct 04 '13 12:10

Adam Szmyd


1 Answers

I had the same problem, also running kubuntu-13.04 (worked fine in 12.10.)

@volferine seems to be onto something. My config_h file is also /usr/include/python2.7/pyconfig.h, and it did not contain the string HAVE_MEMMOVE.

To pyconfig.h, I appended:

#define HAVE_MEMMOVE 1

PyXML now appears to build for me. I filed a bug report here: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1238244.

like image 87
wryfi Avatar answered Nov 13 '22 11:11

wryfi