Note that there are some explanatory texts on larger screens.

plurals
  1. POCompile IP2Location Python extension for Windows 7
    primarykey
    data
    text
    <p>I want to compile / install the IP2Location Python extension found here:</p> <blockquote> <p>www.ip2location.com/python.aspx</p> </blockquote> <p>I tried following the instructions at these sites:</p> <blockquote> <p>eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/ boodebr.org/main/python/build-windows-extensions</p> </blockquote> <p>But I am getting no where. The problem is the Python extension relies on another C library:</p> <blockquote> <p>www.ip2location.com/c.aspx</p> </blockquote> <p>When I try to compile this library in cygwin I get the following output:</p> <pre><code>make all-recursive make[1]: Entering directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0' Making all in libIP2Location make[2]: Entering directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0/li bIP2Location' /bin/sh ../libtool --tag=CC --mode=link gcc -mno-cygwin -IiMath/ -g -O2 -modul e -no-undefined -avoid-version -o libIP2Location.la -rpath /cygdrive/c/MinGW/li b libIP2Location_la-IP2Location.lo libIP2Location_la-imath.lo libtool: link: rm -fr .libs/libIP2Location.dll.a libtool: link: gcc -mno-cygwin -shared .libs/libIP2Location_la-IP2Location.o .l ibs/libIP2Location_la-imath.o -mno-cygwin -o .libs/libIP2Location.dll -Wl,- -enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libIP2Location.dll. a .libs/libIP2Location_la-IP2Location.o: In function `IP2Location_ip2no': /home/ty/Python-IP2Location/C-IP2Location-3.0.0/libIP2Location/IP2Location.c:71 8: undefined reference to `_inet_addr@4' Creating library file: .libs/libIP2Location.dll.a collect2: ld returned 1 exit status make[2]: *** [libIP2Location.la] Error 1 make[2]: Leaving directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0/lib IP2Location' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ty/Python-IP2Location/C-IP2Location-3.0.0' make: *** [all] Error 2 </code></pre> <p>I'm running python 2.6.3 on Windows 7 32-bit. I have MS Visual Studio 2008 (though no idea how to use it) and of course cygwin / MinGW.</p> <p>Any help or pointers would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload