when emerging kde 3.1 when i had 3.0.5a installed it mingled up the kde environment variables in /etc/env.d/ and kde became unuseable.
please look into bug #15593, you need kdelibs-3.0.5a-r1/kdebase-3.0.5a-r2 and kdelibs-3.1-r2/kdebase-3.1-r1. KDEDIRS should only contain /usr, if it contains /use/kde/[3,3.1], kde will not work.
can this be closed now? or is there still anything wrong?
duplicate