Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22096

GCC error when installing GeoIP from macOS terminal [closed]

$
0
0
jruce's macbook pro:jruce$ pip install GeoIPDEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-supportCollecting GeoIP  Using cached GeoIP-1.3.2.tar.gz (20 kB)Building wheels for collected packages: GeoIP  Building wheel for GeoIP (setup.py) ... error  ERROR: Command errored out with exit status 1:   command: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/setup.py'"'"'; __file__='"'"'/private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-wheel-7ow5c7       cwd: /private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/  Complete output (14 lines):  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'    warnings.warn(msg)  running bdist_wheel  running build  running build_ext  building 'GeoIP' extension  creating build  creating build/temp.macosx-10.9-x86_64-2.7  gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c py_GeoIP.c -o build/temp.macosx-10.9-x86_64-2.7/py_GeoIP.o -fno-strict-aliasing  py_GeoIP.c:23:10: fatal error: 'GeoIP.h' file not found  #include "GeoIP.h"           ^~~~~~~~~  1 error generated.  error: command 'gcc' failed with exit status 1  ----------------------------------------  ERROR: Failed building wheel for GeoIP  Running setup.py clean for GeoIPFailed to build GeoIPInstalling collected packages: GeoIP    Running setup.py install for GeoIP ... error    ERROR: Command errored out with exit status 1:     command: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/setup.py'"'"'; __file__='"'"'/private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-record-CwAVtq/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/GeoIP         cwd: /private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/    Complete output (14 lines):    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'      warnings.warn(msg)    running install    running build    running build_ext    building 'GeoIP' extension    creating build    creating build/temp.macosx-10.9-x86_64-2.7    gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c py_GeoIP.c -o build/temp.macosx-10.9-x86_64-2.7/py_GeoIP.o -fno-strict-aliasing    py_GeoIP.c:23:10: fatal error: 'GeoIP.h' file not found    #include "GeoIP.h"             ^~~~~~~~~    1 error generated.    error: command 'gcc' failed with exit status 1    ----------------------------------------ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/setup.py'"'"'; __file__='"'"'/private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-install-GLhvG4/GeoIP/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ck/n3jy5szd5t1f9lx_qfjxlqlr0000gn/T/pip-record-CwAVtq/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/GeoIP Check the logs for full command output.

Viewing all articles
Browse latest Browse all 22096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>