Найти - Пользователи
Полная версия: xmlsec для ubuntu,помогите найти
Начало » Python для новичков » xmlsec для ubuntu,помогите найти
1
ilnur
привет.

помогите пожалуйста найти модуль xmlsec для python 2.7.3, ubuntu

спасибо
FishHook
Это не подходит?
ilnur
чето не получается установить.
...
In file included from wrap_objs.c:25:0:
wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога
компиляция прервана.
error: command 'gcc' failed with exit status 1
погуглив, установил ещё python-dev libxml2-dev libxslt1-dev. но все равно таже ошибка

нашёл ещё вот это.
http://www.aleksey.com/xmlsec/download.html
но никак не разберусь как его оттуда поставить.
FishHook
ilnur, ты когда уже перестанешь сам себя насиловать в голову и установишь линукс?
ilnur
ох ё. Я же на линуксе. Ubuntu 12.
По старой привычке в 1 посте написал винда. блиииин

в общем ubuntu12 у меня. ставлю в виртуальное окружение через pip
$pip freeze
argparse==1.2.1
distribute==0.6.24
libxml2-python==2.6.9
lxml==3.1.0
wsgiref==0.1.2
в pypi нашел pyxmlsec. Но он через pip не ставится.
pip install pyxmlsec
Downloading/unpacking pyxmlsec
  Running setup.py egg_info for package pyxmlsec
    Error : cannot get XMLSec1 pre-processor and compiler flags
    Error : cannot get XMLSec1 linker flags
    Warning : cflag sh: skipped
    Warning : cflag 1: skipped
    Warning : cflag xmlsec1-config: skipped
    Warning : cflag not skipped
    Warning : cflag found skipped
    Warning : linker flag sh: skipped
    Warning : linker flag 1: skipped
    Warning : linker flag xmlsec1-config: skipped
    Warning : linker flag not skipped
    Warning : linker flag found skipped
    
    warning: no previously-included files found matching 'examples/vrac*'
    warning: no previously-included files found matching 'examples/*~'
    warning: no previously-included files found matching 'docs/cours/*'
Installing collected packages: pyxmlsec
  Running setup.py install for pyxmlsec
    Error : cannot get XMLSec1 pre-processor and compiler flags
    Error : cannot get XMLSec1 linker flags
    Warning : cflag sh: skipped
    Warning : cflag 1: skipped
    Warning : cflag xmlsec1-config: skipped
    Warning : cflag not skipped
    Warning : cflag found skipped
    Warning : linker flag sh: skipped
    Warning : linker flag 1: skipped
    Warning : linker flag xmlsec1-config: skipped
    Warning : linker flag not skipped
    Warning : linker flag found skipped
    building 'xmlsecmod' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c utils.c -o build/temp.linux-x86_64-2.7/utils.o
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c wrap_objs.c -o build/temp.linux-x86_64-2.7/wrap_objs.o
    In file included from wrap_objs.c:25:0:
    wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога
    компиляция прервана.
    error: command 'gcc' failed with exit status 1
    Complete output from command /home/ilnurgi/.virtualenvs/test/bin/python -c "import setuptools;__file__='/home/ilnurgi/.virtualenvs/test/build/pyxmlsec/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-jo0jNo-record/install-record.txt --install-headers /home/ilnurgi/.virtualenvs/test/include/site/python2.7:
    Error : cannot get XMLSec1 pre-processor and compiler flags
Error : cannot get XMLSec1 linker flags
Warning : cflag sh: skipped
Warning : cflag 1: skipped
Warning : cflag xmlsec1-config: skipped
Warning : cflag not skipped
Warning : cflag found skipped
Warning : linker flag sh: skipped
Warning : linker flag 1: skipped
Warning : linker flag xmlsec1-config: skipped
Warning : linker flag not skipped
Warning : linker flag found skipped
running install
running build
running build_py
running build_ext
building 'xmlsecmod' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c utils.c -o build/temp.linux-x86_64-2.7/utils.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c wrap_objs.c -o build/temp.linux-x86_64-2.7/wrap_objs.o
In file included from wrap_objs.c:25:0:
wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога
компиляция прервана.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /home/ilnurgi/.virtualenvs/test/bin/python -c "import setuptools;__file__='/home/ilnurgi/.virtualenvs/test/build/pyxmlsec/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-jo0jNo-record/install-record.txt --install-headers /home/ilnurgi/.virtualenvs/test/include/site/python2.7 failed with error code 1 in /home/ilnurgi/.virtualenvs/test/build/pyxmlsec
Storing complete log in /home/ilnurgi/.pip/pip.log
FishHook
попробуй сначала
sudo apt-get install xmlsec1
s0rg
ему явно не хватает -dev пакетов - о чем он вам и говорит:
wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога
ilnur
sudo apt-get install xmlsec1
установлен
ему явно не хватает -dev пакетов - о чем он вам и говорит:
я вручную скачивал архив. Там такой файл есть.
s0rg
либо укажите путь где он есть для gсс, либо поставьте libxmlsec1-dev
ilnur
оооооооооооооо
огромное спасибо. Заработало после libxmlsec1-dev
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB