Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prologic/4981775 to your computer and use it in GitHub Desktop.
Save prologic/4981775 to your computer and use it in GitHub Desktop.
$ pip install mapscript
Downloading/unpacking mapscript
Running setup.py egg_info for package mapscript
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/local/lib/python2.7/site-packages/distribute-0.6.30-py2.7.egg (from mapscript)
Installing collected packages: mapscript
Running setup.py install for mapscript
building '_mapscript' extension
cc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mapscript_wrap.c -o build/temp.macosx-10.8-x86_64-2.7/mapscript_wrap.o
mapscript_wrap.c:2040:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
mapscript_wrap.c:2043:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
mapscript_wrap.c:2564:10: fatal error: 'mapserver.h' file not found
#include "mapserver.h"
^
2 warnings and 1 error generated.
error: command 'cc' failed with exit status 1
Complete output from command /Users/s2092651/bin/python -c "import setuptools;__file__='/Users/s2092651/build/mapscript/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/pip-sVD91E-record/install-record.txt --single-version-externally-managed --install-headers /Users/s2092651/bin/../include/site/python2.7:
running install
running build
running build_py
running egg_info
writing requirements to mapscript.egg-info/requires.txt
writing mapscript.egg-info/PKG-INFO
writing top-level names to mapscript.egg-info/top_level.txt
writing dependency_links to mapscript.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'mapscript.egg-info/SOURCES.txt'
writing manifest file 'mapscript.egg-info/SOURCES.txt'
running build_ext
building '_mapscript' extension
cc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mapscript_wrap.c -o build/temp.macosx-10.8-x86_64-2.7/mapscript_wrap.o
mapscript_wrap.c:2040:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
mapscript_wrap.c:2043:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
mapscript_wrap.c:2564:10: fatal error: 'mapserver.h' file not found
#include "mapserver.h"
^
2 warnings and 1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Command /Users/s2092651/bin/python -c "import setuptools;__file__='/Users/s2092651/build/mapscript/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zt/j6blp64j68b8bxffh7ynxwkm0000gq/T/pip-sVD91E-record/install-record.txt --single-version-externally-managed --install-headers /Users/s2092651/bin/../include/site/python2.7 failed with error code 1 in /Users/s2092651/build/mapscript
Storing complete log in /Users/s2092651/.pip/pip.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment