~ubuntu-branches/ubuntu/oneiric/partitionmanager/oneiric

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-01-23 17:57:36 UTC
  • Revision ID: james.westby@ubuntu.com-20090123175736-2ltrhgg3m55dokbm
Tags: upstream-1.0.0~beta1a
ImportĀ upstreamĀ versionĀ 1.0.0~beta1a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Building and installing KDE Partition Manager from source
 
2
=========================================================
 
3
 
 
4
 
 
5
1. Dependencies
 
6
 
 
7
libparted: Either get it from http://www.gnu.org/software/parted/download.shtml
 
8
and build it yourself or, preferably, install your distribution's packages
 
9
(don't forget the dev-package).
 
10
 
 
11
libuuid: This is part of e2fsprogs, something you will most probably need
 
12
anyway. Get the source and build it from
 
13
http://sourceforge.net/project/showfiles.php?group_id=2406 or, preferably,
 
14
install your distribution's packages (again, don't forget the dev-package).
 
15
 
 
16
libblkid: Also part of e2fsprogs. See libuuid.
 
17
 
 
18
KDE4: KDE 4.0 will not work. The minimum required version is 4.1.0. To build the
 
19
documentation, you need 4.1.4 or 4.2.0.
 
20
 
 
21
 
 
22
2. Configure
 
23
 
 
24
KDE Partition Manager is built with cmake, like most of KDE4 today. It is
 
25
recommended to build out of tree: After unpacking the source, create a separate
 
26
build directory and run cmake there:
 
27
 
 
28
$ tar xfj partitionmanager-1.0.0-BETA1.tar.bz2
 
29
$ cd partitionmanager-1.0.0-BETA1
 
30
$ mkdir build
 
31
$ cd build
 
32
$ cmake ..
 
33
 
 
34
If all dependencies are met, cmake configures the build directory.
 
35
 
 
36
If you get an error message like "ERROR: Could not find KDE4 kde4-config" but
 
37
have KDE4 and its development packages installed, you might need to add the
 
38
KDE4 bin directory to the path.
 
39
 
 
40
 
 
41
3. Build and install
 
42
 
 
43
Just run make and make install in the build directory. The default install path
 
44
is /usr/local, so installing will need write privileges there. You can
 
45
configure a different install path by passing
 
46
-DCMAKE_INSTALL_PREFIX=<your_path> to cmake when configuring. To change the
 
47
install path after configuring and building, run
 
48
 
 
49
$ ccmake .
 
50
 
 
51
in the build directory and modify CMAKE_INSTALL_PREFIX there.
 
52
 
 
53
 
 
54
4. Running
 
55
 
 
56
KDE Partition Manager should be run as root. Running it as an unprivileged user
 
57
does no harm, but you will not be allowed to apply any operations (i.e., you
 
58
can click through the UI, but cannot modify your disks).
 
59
 
 
60
 
 
61
5. Troubleshooting
 
62
 
 
63
If you are getting an error like this during the build:
 
64
 
 
65
index.docbook:71: parser error : Entity 'partman' not defined
 
66
 
 
67
there is a problem with a documentation file. This is easily fixed by
 
68
commenting out the offending language in doc/CMakeLists.txt -- the error
 
69
message should indicate which language causes the error. As an alternative, you
 
70
can disable building all documentation by commenting out the
 
71
macro_optional_add_subdirectory(doc) line in the toplevel CMakeLists.txt file.
 
72