I've gotten out a bit ahead of the standard repositories. I want to use Matplotlib with Python 3, and that means that I need Matplotlib 1.2.1.
I've done manual builds before. In fact, I did a manual build of Matplotlib 1.0 about two years ago, when it was new. I always get error messages when I'm doing manual builds. I do a little Internet searching, and deduce which package contains the file that the error message says is missing. (Is there a better way? You can't use apt-get build-dep unless you have an apt repository, right?).
Anyway, I got an error message after executing python setup.py build in the maplotlib 1.2.1 directory. Just the tail end is shown:
I actually remembered this error message from a few years back, and knew that I needed the python-dev package. More specifically, I now need python3-dev. So I downloaded it, and tried my build again. The error message did not change.
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/lib/python2.7/dist-packages/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/usr/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.7/src/ft2font.o
In file included from ./CXX/Extensions.hxx:37:0,
./CXX/WrapPython.h:58:20: fatal error: Python.h: No such file or directory
error: command 'gcc' failed with exit status 1
Next I tried sudo find / -name "Python.h". I do indeed have a file named Python.h, in the directory /usr/include/python3.2mu/. So, why isn't gcc seeing it?
What is the python3.2mu directory anyway? Why isn't the directory simply python3.2? Do I need to add this python3.2mu directory manually to some search path?