Problem building on amd64 debian-testing

I had no troubles installing matplotlib on my 32-bit laptop, but cannot
get it to install on my amd64 debian desktop. I've pulled in the latest
svn version (to go with the latest numpy and scipy), then run:

$ python install

and after a few ms of successful compile get the following error:

building 'matplotlib._agg' extension
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC'
creating build/temp.linux-x86_64-2.3/agg23
creating build/temp.linux-x86_64-2.3/agg23/src
compile options: '-Iagg23/include -Isrc -Iswig -I/usr/include/python2.3 -c'
gcc: agg23/src/agg_path_storage.cpp
gcc: installation problem, cannot exec 'cc1plus': No such file or directory
gcc: installation problem, cannot exec 'cc1plus': No such file or directory
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -Iagg23/include -Isrc -Iswig
-I/usr/include/python2.3 -c agg23/src/agg_path_storage.cpp -o
build/temp.linux-x86_64-2.3/agg23/src/agg_path_storage.o" failed with
exit status 1

I have verified that the required files are present:

$ locate cc1plus

which is basically the same as my 32-bit machine but with the
correspondingly different directory name, so it must be a linkage
problem. I'd like to try adding -m64 in the gcc flags, but have no idea
where to add that in when building via python.

1) How do I fix this?

2) Would my fix work? I can't find the gcc flags anywhere in the
matplotlib directory so I'm guessing this is passed on to main python
installation to construct (but don't know where) - is this correct?

Many thanks,



Angus McMorland
email a.mcmorland@...1095...
mobile +64-21-155-4906

PhD Student, Neurophysiology / Multiphoton & Confocal Imaging
Physiology, University of Auckland
phone +64-9-3737-599 x89707

Armourer, Auckland University Fencing
Secretary, Fencing North Inc.