Opened 6 years ago

Closed 6 years ago

#10625 closed defect (fixed)

Cannot build the 'GeoIP' extension

Reported by: anadahz Owned by: hellais
Priority: Immediate Milestone:
Component: Archived/Ooni Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

https://gitweb.torproject.org/ooni-probe.git/blob/HEAD:/requirements.txt#l7

building 'GeoIP' extension

creating build

creating build/temp.linux-armv6l-2.7

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

py_GeoIP.c:22:19: fatal error: GeoIP.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/geoip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ZvoViF-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/geoip
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 271, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1185, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 592, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 662, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/geoip/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ZvoViF-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/geoip

Child Tickets

Change History (2)

comment:1 Changed 6 years ago by hellais

This issue has to do with the fact that you do not have installed the debian package libgeoip-dev.

comment:2 Changed 6 years ago by anadahz

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.