cnbeining / adns-python

Automatically exported from code.google.com/p/adns-python
0 stars 0 forks source link

Installation failed with pip on Ubuntu 12.10 #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

$ sudo pip install adns-python
[sudo] password for yohann: 
Downloading/unpacking adns-python
  Downloading adns-python-1.2.1.tar.gz
  Running setup.py egg_info for package adns-python

Installing collected packages: adns-python
  Running setup.py install for adns-python
    building 'adns' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c adnsmodule.c -o build/temp.linux-i686-2.7/adnsmodule.o
    adnsmodule.c:10:18: fatal error: adns.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/adns-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GDmtcj-record/install-record.txt --single-version-externally-managed:
    running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

copying DNSBL.py -> build/lib.linux-i686-2.7

copying ADNS.py -> build/lib.linux-i686-2.7

running build_ext

building 'adns' extension

creating build/temp.linux-i686-2.7

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c adnsmodule.c -o 
build/temp.linux-i686-2.7/adnsmodule.o

adnsmodule.c:10:18: fatal error: adns.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

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

What version of the product are you using? On what operating system?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:   quantal

$ uname -a
Linux yo 3.5.0-27-generic #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013 i686 i686 
i686 GNU/Linux

$ pip --version
pip 1.3.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

$ python --version
Python 2.7.3

$ gcc --version
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Original issue reported on code.google.com by yoh...@lepage.info on 11 Apr 2013 at 1:37

GoogleCodeExporter commented 9 years ago
You don't have the ADNS libraries installed, but just do this:

$ sudo apt-get install python-adns

Original comment by farcep...@gmail.com on 12 Apr 2013 at 6:05

GoogleCodeExporter commented 9 years ago
Please note that this seems not to be the case any more. The package is called 
I had to apt-get install libadns1-dev 

Original comment by svr...@gmail.com on 22 Jan 2014 at 9:49