Difference between revisions of "KDE Pre-Installation Configuration"

From CBLFS
Jump to navigationJump to search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
If you're using the [[Bash Startup Files]] then run the commands below. Otherwise make sure that the values you want are properly set.
 +
 
== Installing KDE into /usr ==
 
== 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 ===
 
=== Non-Multilib or Multilib ===
Line 18: Line 18:
 
  source /etc/profile
 
  source /etc/profile
  
== Installing KDE into /opt/kde-3.5.4 ==
+
== Installing KDE into /opt ==
 +
 
 +
Create the '''/opt/kde''' directory:
  
If you're using the [[Bash Startup Files]] then run the commands below. Otherwise make sure that the values you want are properly set.
+
install -dv -m755 /opt/kde
  
 
=== Non-Multilib ===
 
=== Non-Multilib ===
Line 29: Line 31:
 
  # Begin /etc/profile.d/30-kde.sh
 
  # Begin /etc/profile.d/30-kde.sh
 
   
 
   
  export KDE_PREFIX=/opt/kde-3.5.4
+
  export KDE_PREFIX=/opt/kde
 
   
 
   
 
  export PATH="${PATH}:${KDE_PREFIX}/bin"
 
  export PATH="${PATH}:${KDE_PREFIX}/bin"
 
   
 
   
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}${KDE_PREFIX}/lib/pkgconfig"
+
  export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${KDE_PREFIX}/lib/pkgconfig"
 
   
 
   
 
  export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
 
  export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
Line 44: Line 46:
 
Add a new entry to /etc/ld.so.conf for the libraries that KDE is going to install:
 
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"
 
 
  cat >> /etc/ld.so.conf << EOF
 
 
  # Begin KDE addition to /etc/ld.so.conf
 
  # Begin KDE addition to /etc/ld.so.conf
 
   
 
   
  ${KDE_PREFIX}/lib
+
  /opt/kde/lib
 
   
 
   
 
  # End KDE addition
 
  # End KDE addition
Line 61: Line 61:
 
  # Begin /etc/profile.d/30-kde.sh
 
  # Begin /etc/profile.d/30-kde.sh
 
   
 
   
  export KDE_PREFIX=/opt/kde-3.5.4
+
  export KDE_PREFIX=/opt/kde
 
   
 
   
 
  export PATH="${PATH}:${KDE_PREFIX}/bin"
 
  export PATH="${PATH}:${KDE_PREFIX}/bin"
 
   
 
   
  export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32:+:}${KDE_PREFIX}/lib/pkgconfig"
+
  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_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}${KDE_PREFIX}/lib32/pkgconfig"
  export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64:+:}${KDE_PREFIX}/lib/pkgconfig"  
+
  export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${KDE_PREFIX}/lib64/pkgconfig"  
 
   
 
   
 
  export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
 
  export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
Line 78: Line 78:
 
Add a new entry to /etc/ld.so.conf for the libraries that KDE is going to install:
 
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"
 
 
  cat >> /etc/ld.so.conf << EOF
 
 
  # Begin KDE addition to /etc/ld.so.conf
 
  # Begin KDE addition to /etc/ld.so.conf
 
   
 
   
  ${KDE_PREFIX}/lib
+
  /opt/kde/lib
  ${KDE_PREFIX}/lib32
+
  /opt/kde/lib32
  ${KDE_PREFIX}/lib64
+
  /opt/kde/lib64
 
   
 
   
 
  # End KDE addition
 
  # End KDE addition
 
  EOF
 
  EOF

Latest revision as of 13:22, 1 January 2008

If you're using the Bash Startup Files then run the commands below. Otherwise make sure that the values you want are properly set.

Installing KDE into /usr

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

export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/kde/xdg"

# End /etc/profile.d/30-kde.sh
EOF
source /etc/profile

Installing KDE into /opt

Create the /opt/kde directory:

install -dv -m755 /opt/kde

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

export PATH="${PATH}:${KDE_PREFIX}/bin"

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${KDE_PREFIX}/lib/pkgconfig"

export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/kde/xdg"

# 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:

cat >> /etc/ld.so.conf << "EOF"
# Begin KDE addition to /etc/ld.so.conf

/opt/kde/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

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}/lib32/pkgconfig"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${KDE_PREFIX}/lib64/pkgconfig" 

export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/kde/xdg"

# 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:

cat >> /etc/ld.so.conf << "EOF"
# Begin KDE addition to /etc/ld.so.conf

/opt/kde/lib
/opt/kde/lib32
/opt/kde/lib64

# End KDE addition
EOF