apt-get build-dep kde

e quindi
apt-get install kde