Many times I run in to this and always have to check the net for a fix cause I never remember it so now I’m going to be smart which took me few times of stupidity and type it down here.
Error:
checking for X…
configure: error: Can’t find X includes. Please check your installation and add the correct paths!
Error during sources configuration. Installation aborted!
Fix:
sudo apt-get install kdebase-dev


January 25, 2008 at 3:36 am
Usually when you run into these dependency problems you will be missing the development packages. I like to install most of the common development packages to alleviate the dependency problems.