There are two libraries you seem to be missing, which you need to install first.
This is provided by
libboost-python and ``. Or as these instructions say, to install this and some of the other prerequisites (which you may or may not already have, based on your error messages), run:
sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev -y
(I wouldn't advise following all the instructions on that page to the letter from beginning to end, though, as they're not written with Ubuntu 11.10 in mind and you don't need, and probably don't want, to set your system up to use an older compiler than is provided officially for it.)
If you have already downloaded CUDA from Nvidia's website and installed it, then you just need to specify where:
(See pycuda's generic instructions page for details.)
Before doing that, you may want to either start over from scratch or run
make distclean (or
make clean if
make distclean is not recognized).
If you haven't yet downloaded and installed CUDA, you can do that at Nvidia's website. Specifically, on this page, grab the 32-bit or 64-bit version of the CUDA toolkit for Ubuntu 11.04 (that's the closest to your system that's available, and will probably work). If you're unsure if you have the 32-bit or 64-bit version of Ubuntu installed, run
uname -m. If it says
x86_64, you have the 64-bit version; otherwise you have the 32-bit version. Also grab the development drivers and SDK.
Quick links (32-bit): Toolkit Drivers SDK
Quick links (64-bit): Toolkit Drivers SDK