The distros I 've used did not have wxGTK packages with gtk2 support, which is essential for codeblocks to work.
It 's pretty straightforward to build wxWidgets from sources (you have to have gtk2 installed):
cd wxGTK-2.4.2
./configure --enable-gtk2
make
su -c "make install"
cd contrib/src/stc
make
su -c "make install"
cd ../xrc
make
su -c "make install"
su -c ldconfig
That should build the core wxWidgets library as wel as the XRC and STC libraries. That's all that codeblocks needs.
HTH,
Yiannis.