Hello, * Mathieu Malaterre <mathieu.malate...@gmail.com>, 2010-02-26, 10:04:
I am trying to solve the following issue (*). Basically Python.h is not found. In order to reproduce it, I tried changing the default python version. Here is where I got to.I read: http://codeghar.wordpress.com/2009/01/27/update-alternatives-in-debian/ http://www.linuxquestions.org/questions/debian-26/change-default-python-version-605397/
It's astonishing how many harmful advices one can find on the web...
So I blindly followed this instruction and I have now: [I have a sid/chroot where I do all my tweakings.] I changed default-version from python2.5 to python2.6 $ cat /usr/share/python/debian_defaults [DEFAULT] # the default python version default-version = python2.6 # all supported python versions supported-versions = python2.5, python2.6 # formerly supported python versions old-versions = python2.3, python2.4 # unsupported versions, including older versions unsupported-versions = python2.3, python2.4 As reported by pyversions -d I was doing something wrong: $ /usr/bin/pyversions -d pyversions: /usr/bin/python does not match the python default version. It must be reset to point to python2.6 Ok then I did: $ update-alternatives --install /usr/bin/python python /usr/bin/python2.5 10 $ update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20 $ update-alternatives --config python All good : $ ls -al /etc/alternatives/python lrwxrwxrwx 1 root root 18 Feb 26 09:01 /etc/alternatives/python -> /usr/bin/python2.6 $ ls -al /usr/bin/python lrwxrwxrwx 1 root root 24 Feb 26 09:01 /usr/bin/python -> /etc/alternatives/python Well still no luck: $ /usr/bin/pyversions -d pyversions: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
Stop using alternatives, make /usr/bin/python direct symlink to python2.6, and it will work.
Could someone please let me know how I can change the default python default version, or at least try to reproduce bug #571491.
FYI, after the failed build: $ find -name 'flags.make' | xargs grep -o -- '-I/usr/include/python2..' ./debian/build-python2.6/Wrapping/Python/CMakeFiles/_gdcmswig.dir/flags.make:-I/usr/include/python2.6 ./debian/build-python2.6/Utilities/VTK/Applications/CMakeFiles/gdcmviewer.dir/flags.make:-I/usr/include/python2.5 ./debian/build-python2.6/Utilities/VTK/Applications/CMakeFiles/gdcm2vtk.dir/flags.make:-I/usr/include/python2.5 ./debian/build-python2.6/Utilities/VTK/CMakeFiles/vtkgdcmPython.dir/flags.make:-I/usr/include/python2.5 ./debian/build-python2.6/Utilities/VTK/CMakeFiles/vtkgdcmPythonD.dir/flags.make:-I/usr/include/python2.5 ./debian/build-python2.6/Utilities/VTK/CMakeFiles/vtkgdcmJava.dir/flags.make:-I/usr/include/python2.5 ./debian/build-python2.6/Utilities/VTK/CMakeFiles/vtkgdcm.dir/flags.make:-I/usr/include/python2.5 ./debian/build-python2.6/Utilities/VTK/CMakeFiles/vtkgdcmsharpglue.dir/flags.make:-I/usr/include/python2.5So "Python.h: No such file or directory" apparently refers to /usr/include/python2.5/Python.h (python2.5-dev was not installed, python2.6-dev was).
-- Jakub Wilk
signature.asc
Description: Digital signature