KDE Pre-Installation Configuration
Installing KDE into /usr
If you're using the Bash Startup Files then run the commands below. Otherwise make sure that the values you want are properly set.
Non-Multilib or Multilib
Create an addition to the Bash Startup Files:
cat > /etc/profile.d/30-kde.sh << "EOF" # Begin /etc/profile.d/30-kde.sh export KDE_PREFIX=/usr # End /etc/profile.d/30-kde.sh EOF source /etc/profile
Installing KDE into /opt/kde-3.5.4
If you're using the Bash Startup Files then run the commands below. Otherwise make sure that the values you want are properly set.
Non-Multilib
Create an addition to the Bash Startup Files:
cat > /etc/profile.d/30-kde.sh << "EOF"
# Begin /etc/profile.d/30-kde.sh
export KDE_PREFIX=/opt/kde-3.5.4
export PATH="${PATH}:${KDE_PREFIX}/bin"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}${KDE_PREFIX}/lib/pkgconfig"
# End /etc/profile.d/30-kde.sh
EOF
source /etc/profile
Add a new entry to /etc/ld.so.conf for the libraries that KDE is going to install:
When EOF is not quoted then bash will expand shell variables. Make sure not to put EOF in "
cat >> /etc/ld.so.conf << EOF
# Begin KDE addition to /etc/ld.so.conf
${KDE_PREFIX}/lib
# End KDE addition
EOF
Multilib
Create an addition to the Bash Startup Files:
cat > /etc/profile.d/30-kde.sh << "EOF"
# Begin /etc/profile.d/30-kde.sh
export KDE_PREFIX=/opt/kde-3.5.4
export PATH="${PATH}:${KDE_PREFIX}/bin"
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32:+:}${KDE_PREFIX}/lib/pkgconfig"
export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32:+:}${KDE_PREFIX}/lib/pkgconfig"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64:+:}${KDE_PREFIX}/lib/pkgconfig"
# End /etc/profile.d/30-kde.sh
EOF
source /etc/profile
Add a new entry to /etc/ld.so.conf for the libraries that KDE is going to install:
When EOF is not quoted then bash will expand shell variables. Make sure not to put EOF in "
cat >> /etc/ld.so.conf << EOF
# Begin KDE addition to /etc/ld.so.conf
${KDE_PREFIX}/lib
${KDE_PREFIX}/lib32
${KDE_PREFIX}/lib64
# End KDE addition
EOF