What I have when building C::B for the first time, was to install the wxGTK that come with ubuntu 5.10 (gnome) and the wx-common package. I have not installed a separate download of wxGTK (though I have it successfully configured). Check with your package manager if you have installed wxGTK 2.6.x and wx-common. Also check this (taken from
here):
What is not covered here, is the wxWidgets prerequisites. The most important being GTK2, of course! Let me stress it here, while it's early: GTK2 is required, not GTK1, for Code::Blocks to be operational.
Also make sure that you have GCC, etc. installed.
After downloading SVN sources with SVN (I have had to install this too), you have to do:
./bootstrap
./configure
make
make install
Using the wxGTK package is the easiest way (it was for me). Also follow the 2 wiki articles I have referenced in one of my post above.
Best wishes,
Michael