python-xmlsec: pip install xmlsec crashes on Debian
I’m on Debian 7.7
Linux *.com 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
user@host:~$ dpkg --get-selections | grep libxml2
libxml2:amd64 install
libxml2-dev:amd64 install
user@host:~$ dpkg --get-selections | grep libxmlsec1
libxmlsec1 install
libxmlsec1-dev install
libxmlsec1-gcrypt install
libxmlsec1-gnutls install
libxmlsec1-nss install
libxmlsec1-openssl install
user@host:~$ dpkg --get-selections | grep python-dev
python-dev install
Running pip install xmlsec fails to build with following message:
creating build/temp.linux-x86_64-2.7/src/xmlsec
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -I/usr/local/lib/python2.7/dist-packages/lxml -I/usr/local/lib/python2.7/dist-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/usr/include/python2.7 -c src/xmlsec/constants.c -o build/temp.linux-x86_64-2.7/src/xmlsec/constants.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc: error: src/xmlsec/constants.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
What am I doing wrong?
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 35
I’m guessing that you don’t have the neccessary requirements.
I’m on ubuntu at the moment so I’ll give it a try in a minute (from a fresh virtualenv).
Oh… obviously you do have them… weird. We’ll I’m trying it now.
Are you using python 2 or 3 ?
It seems you’re on 2.7.x; I’ll install that and try.
@mehcode, I had an ubuntu 13.10 in a virtual machine with python 2.7.5+ (same than my other machine) and is also experience the same issue.
but after execute a apt-get update and reinstall: apt-get install xmlsec1 openssl python-lxml libxmlsec1 libxmlsec1-dev
worked!
I will try to do the same now in my main machine