sensepost / snoopy-ng

Snoopy v2.0 - modular digital terrestrial tracking framework
Other
429 stars 128 forks source link

install failed on BBB / missing libxml/xmlversion.h #18

Closed dantzler closed 9 years ago

dantzler commented 9 years ago

I'm running the most recent BBB Kali 1.09 ARM image on my BBB. I worked through the NTP issue, but then got an error compiling due to missing libxml/xmlversion.h file.

The install went perfectly on the Kali box that I plan to use as server.

[snip] running build_ext

building 'lxml.etree' extension

creating build/temp.linux-armv7l-2.7

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

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

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-armv7l-2.7/src/lxml/lxml.etree.o -w

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

/tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1


Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-5GtU24-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/lxml Traceback (most recent call last): File "/usr/local/bin/pip", line 9, in load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/init.py", line 185, in main return command.main(cmd_args) File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 40: ordinal not in range(128)

dantzler commented 9 years ago

It looks like the development packages for libxml2 & libxslt were not installed on the Kali image that I am using. This fixed my snoopy-ng install:

apt-get install libxml2-dev libxslt1-dev