[MapProxy] Install problem

DeDuikertjes DeDuikertjes at xs4all.nl
Sun May 2 14:37:55 EDT 2010


Oliver,

Thank you.
Indeed I yummed python26-dev instead of python26-devel.

After that I can do
/usr/bin/python2.6 virtualenv.py --distribute /var/lib/mapproxy
Which issues:
New python executable in /var/lib/mapproxy/bin/python2.6
Not overwriting existing python script /var/lib/mapproxy/bin/python (you 
must use /var/lib/mapproxy/bin/python2.6)
A globally installed setuptools was found (in 
/usr/lib/python2.6/site-packages)
Use the --no-site-packages option to use distribute in the virtualenv

and then ends with ....done.
So far so good (i hope).
then:
source /var/lib/mapproxy/bin/activate
pip install -r http://bitbucket.org/olt/mapproxy/raw/tip/requirements.txt

This gives me a few warnings like:
 Downloading Jinja2-2.1.1.tar.gz (516Kb): 516Kb downloaded
  Running setup.py egg_info for package Jinja2
    warning: no files found matching 'Makefile'
    warning: no files found matching 'ez_setup.py'
    warning: no previously-included files matching '*' found under 
directory 'docs/_build/doctrees'
Downloading/unpacking flup==1.0.3.dev-20100221 (from -r 
http://bitbucket.org/olt/mapproxy/raw/tip/requirements.txt (line 4))

another suspicious output:
Requirement already satisfied (use --upgrade to upgrade): distribute in 
./lib/python2.6/site-packages/distribute-0.6.8-py2.6.egg (from 
MapProxy->-r http://bitbucket.org/olt/mapproxy/raw/tip/requirements.txt 
(line 1))
Installing collected packages: flup, Jinja2, MapProxy, Paste, 
PasteDeploy, PasteScript, PIL, pyproj, PyYAML, WebOb, WSGIUtils

and then it fails with:
running build_ext

building 'jinja2._speedups' extension

creating build/temp.linux-x86_64-2.6

creating build/temp.linux-x86_64-2.6/jinja2

gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC 
-I/usr/include/python2.6 -c jinja2/_speedups.c -o 
build/temp.linux-x86_64-2.6/jinja2/_speedups.o

In file included from /usr/include/features.h:352,

                 from /usr/include/limits.h:27,

                 from 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/limits.h:122,

                 from 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/syslimits.h:7,

                 from 
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/limits.h:11,

                 from /usr/include/python2.6/Python.h:19,

                 from jinja2/_speedups.c:15:

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or 
directory

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /var/lib/mapproxy/bin/python2.6 -c "import setuptools; 
__file__='/var/lib/mapproxy/build/Jinja2/setup.py'; 
execfile('/var/lib/mapproxy/build/Jinja2/setup.py')" install 
--single-version-externally-managed --record 
/tmp/pip-I3by5x-record/install-record.txt --install-headers 
/var/lib/mapproxy/include/site/python2.6 failed with error code 1


Actually I don't dare to ask (but I really appreciate your help so far 
and any coming), do you have clues to solve?

MArco




Oliver Tonnhofer schreef:
> On 02.05.2010, at 17:02, DeDuikertjes wrote:
>   
>> /usr/bin/python2.6 virtualenv.py --distribute /var/lib/mapproxy
>> Traceback (most recent call last):
>> [...]
>> distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.6/config/Makefile (No such file or directory)
>>
>> I did install distutils but the directory /usr/lib/python2.6/config/ is missing.
>> I cannot get that one repaired.
>>     
>
> Looks like your Python 2.6 does not contain all files. You will need a python26-dev or python26-devel package. See http://mail.python.org/pipermail/distutils-sig/2009-June/012248.html
>
> Regards,
> Oliver
>
>   


More information about the MapProxy mailing list