Difference between revisions of "Getting Started/Build/Distributions/openSUSE"

Jump to: navigation, search
(Required Packages)
(46 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Getting_Started/Build/KDE4/openSUSE}}
 
In openSUSE 10.2 and newer, you can install packages using [http://en.opensuse.org/Zypper Zypper]:
 
<code bash>
 
sudo zypper install <package-name>
 
</code>
 
  
In older releases of SUSE, you can use YaST:
+
= Introduction =
<code bash>
+
su
+
yast -i <packagename>
+
</code>
+
  
'''Required Packages'''
+
openSUSE has a very strong and active KDE team with a lot of information on their own wiki:
 +
* [http://en.opensuse.org/Portal:KDE openSUSE KDE Portal]
 +
* [http://en.opensuse.org/KDE_repositories openSUSE KDE package repositories]
 +
* [http://en.opensuse.org/openSUSE:KDE_developers_guide openSUSE KDE Developers Guide] (Outdated)
 +
* [http://en.opensuse.org/KDE openSUSE wiki KDE page]
  
The packages you will need to install are:
+
= Required Packages =
<code>
+
Use the following command to install the needed packages:
xorg-x11-devel
+
libxml2-devel
+
kdesdk3
+
clucene-core-devel
+
boost-devel
+
libjpeg-devel
+
liblrdf-devel
+
libpng-devel
+
libxslt-devel
+
libredland-devel
+
Mesa-devel
+
giflib-devel
+
subversion
+
gcc
+
gcc-c++
+
gmp-devel (needed to build kdesupport)
+
xine-devel
+
libgpgme-devel (needed to build kdepimlibs)
+
pcre-devel
+
</code>
+
  
'''Optional Packages'''
+
<pre>
 +
zypper si -d kdelibs4
 +
</pre>
  
You can skip the manual and painful installation kdesupport and its dependencies ( Qt 4.3, CMake 2.4.6, DBus, Hal, clucene-core, Strigi,
+
= Build =
Soprano and other Nepomuk dependencies) by adding the KDE:KDE4 repository from
+
the [http://download.opensuse.org/repositories/KDE:/KDE4/ openSUSE Build Service] to your installation sources.
+
  
For openSUSE 10.2 and newer add this Repository to your Install Source (Yast)
+
This section describes how you can get kde to compile so that you can log in graphically (using kdm, the KDE display manager) and call konqueror (contained in KDEBASE, KDE's base package).
<code>
+
http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Desktop/openSUSE_10.2/
+
</code>
+
  
For older versions of SUSE Linux do:
+
== kdesupport ==
<code>
+
su
+
installation_sources -a http://software.opensuse.org/download/KDE:/KDE4:/[YOUR SUSE LINUX VERSION]
+
</code>
+
  
Now install the following packages:
+
You can install kdesupport and its dependencies from SUSE by adding the KDE:Distro:Stable repository from
<code>
+
the [http://download.opensuse.org/repositories/KDE:/Distro:/Stable/ openSUSE Build Service] to your repositories. For openSUSE 12.1 add this Repository to YaST/zypper:
cmake
+
http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_12.1/
dbus-1-devel
+
libqt4-devel
+
libqca2-devel
+
libsoprano-devel
+
libqimageblitz-devel
+
strigi
+
strigi-devel
+
</code>
+
  
CMake binary packages for openSUSE are available from the KDE:KDE4 repository as well as from the [http://software.opensuse.org/download/devel:/tools:/building/ openSUSE build service].
+
For older versions of openSUSE do:
 +
su
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/Distro:/Stable/[YOUR openSUSE VERSION]
  
There are a lot more packages that are needed to satisfy the config-check, such as libusb-devel, bison etc., so look out for the config notifications and install accordingly. Please remember to skip any instructions that refer to kdesupport below. Start to compile with kdelibs.
+
Now install kdesupport from openSUSE:
 +
zypper install libqca2-devel libsoprano-devel libqimageblitz-devel strigi-devel
  
 +
Please remember to skip any instructions from [[Getting_Started/Build]] that refer to kdesupport. Start to compile with kdelibs.
  
Return to [[Getting_Started/Build/KDE4#kdelibs|building KDE 4]].
+
= Using openSUSE Unstable Repositories =
 +
 
 +
openSUSE, via its Build Service, provides a so-called unstable repository which contains weekly snapshots from KDE SVN trunk. These allow you to run a system install of unstable, but does not allow you to keep a stable system install while testing unstable in parallel.
 +
 
 +
== Requirements ==
 +
 
 +
You need a supported openSUSE version, that is, at the time of writing, openSUSE 11.4 or 12.1 or openSUSE Factory (the always-on-development branch of openSUSE).
 +
 
 +
== Installing packages from the unstable repository ==
 +
 
 +
Add the repository manually and perform an installation from the command line.
 +
 
 +
 
 +
=== Addition of the repository ===
 +
 
 +
Add the repository. To do so, enter as root
 +
 
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/Unstable:/SC/YOUR_openSUSE_VERSION/ [ALIAS]
 +
 
 +
where YOUR_openSUSE_VERSION is either openSUSE_11.4, openSUSE_12.1, or openSUSE_Factory depending on what you are running. And ALIAS is whatever name you want to assign to the repository.
 +
 
 +
After that upgrade the packages to the unstable version:
 +
 
 +
zypper dup --from [ALIAS]
 +
 
 +
=== Post-installation steps ===
 +
 
 +
You may want to add some additional repositories to have compatible non KDE SC packages available.
 +
 
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/UpdatedApps/YOUR_openSUSE_VERSION/ [ALIAS]
 +
zypper ar -f http://download.opensuse.org/repositories/KDE:/Extra/YOUR_openSUSE_VERSION/_KDE_Unstable_SC/ [ALIAS]
 +
 
 +
followed by the installation the packages you need:
 +
 
 +
zypper install [package]
 +
 
 +
Return to [[Getting_Started/Build|Building KDE]].

Revision as of 20:10, 4 February 2013

Contents

Introduction

openSUSE has a very strong and active KDE team with a lot of information on their own wiki:

Required Packages

Use the following command to install the needed packages:

zypper si -d kdelibs4

Build

This section describes how you can get kde to compile so that you can log in graphically (using kdm, the KDE display manager) and call konqueror (contained in KDEBASE, KDE's base package).

kdesupport

You can install kdesupport and its dependencies from SUSE by adding the KDE:Distro:Stable repository from the openSUSE Build Service to your repositories. For openSUSE 12.1 add this Repository to YaST/zypper:

http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_12.1/

For older versions of openSUSE do:

su
zypper ar -f http://download.opensuse.org/repositories/KDE:/Distro:/Stable/[YOUR openSUSE VERSION]

Now install kdesupport from openSUSE:

zypper install libqca2-devel libsoprano-devel libqimageblitz-devel strigi-devel

Please remember to skip any instructions from Getting_Started/Build that refer to kdesupport. Start to compile with kdelibs.

Using openSUSE Unstable Repositories

openSUSE, via its Build Service, provides a so-called unstable repository which contains weekly snapshots from KDE SVN trunk. These allow you to run a system install of unstable, but does not allow you to keep a stable system install while testing unstable in parallel.

Requirements

You need a supported openSUSE version, that is, at the time of writing, openSUSE 11.4 or 12.1 or openSUSE Factory (the always-on-development branch of openSUSE).

Installing packages from the unstable repository

Add the repository manually and perform an installation from the command line.


Addition of the repository

Add the repository. To do so, enter as root

zypper ar -f http://download.opensuse.org/repositories/KDE:/Unstable:/SC/YOUR_openSUSE_VERSION/ [ALIAS]

where YOUR_openSUSE_VERSION is either openSUSE_11.4, openSUSE_12.1, or openSUSE_Factory depending on what you are running. And ALIAS is whatever name you want to assign to the repository.

After that upgrade the packages to the unstable version:

zypper dup --from [ALIAS]

Post-installation steps

You may want to add some additional repositories to have compatible non KDE SC packages available.

zypper ar -f http://download.opensuse.org/repositories/KDE:/UpdatedApps/YOUR_openSUSE_VERSION/ [ALIAS]
zypper ar -f http://download.opensuse.org/repositories/KDE:/Extra/YOUR_openSUSE_VERSION/_KDE_Unstable_SC/ [ALIAS]

followed by the installation the packages you need:

zypper install [package]

Return to Building KDE.


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal