Changes

From Gramps

De:Installation

6,547 bytes added, 07:59, 31 March 2013
Installation von den Quellen
==Installation von den Quellen==
 Gramps 3.4.x is the main current version, and is available in packaged form for some distributions. Gramps 4.x is a new version that has different requirements. Installation of this version is described [[Installation#Gramps_4.x|here]]  === Gramps 3.4.x === ====Allgemeine Anforderungen====
Gramps {{version}} benötigt python 2.6 oder höher, pygtk 2.16 oder höher und librsvg2
</pre>
====Quellen herunterladen====
Es gibt zwei Wege an den Quellcode zu gelangen: download a stable version source, or checkout the source from svn. Jetzt ist es Zeit die [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/INSTALL?view=markup INSTALL] und [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/README?view=markup README] Datei zu lesen, die dem Code beigefügt sind. Sie enthalten die neuesten Informationen. Details zu jeder download Methode:
für die letzte Entwickler Version siehe [[Getting started with Gramps Trunk| Mit Gramps Trunk beginnen]].
====Gramps aktualisieren====
Wenn du eine ältere Version von Gramps aus den Quellen installiert hast, musst du dich entscheiden, was du mit ihr machen willst, bevor du eine neuere Version installierst. If you wish to keep the old version, make sure that you read the instructions in the INSTALL file regarding the use of the --prefix option to specify where the new version gets installed.
'''Beachte du solltest die alte Gramps Version verwenden um Sicherungskopien im Gramps-XML Format zu erstellen, bevor du die alte Version entfernst.'''
==== Unter Linuxerstellen ====
Gramps bietet ein Skript, dass den Code zur Installation vorbereitet und das Standard configure-Programm aufruft:<code>
Eine lokale Installation ohne root-Rechte ist möglich, Anweisungen (in Englisch) sind in der INSTALL Datei enthalten, am wichtigsten ist es muss ein <code>--prefix=</code> und ein <code>--with-mime-dir=</code> Argument in <code>autogen.sh</code> hinzugefügt werden.
==== Siehe auch ====* $GRAMPSHOME in [[De:Gramps_3.4_Wiki_Handbuch_-_Kommandozeilen_Referenz#Umgebungsvariablen|Umgebungsvariablen]]* [[Translating_Gramps#.24GRAMPSI18N_.28for_your_locale.29| $GRAMPSI18N (for your locale) ]] (englisch)* [[Installation_alternatives]] (englisch)* [[Translating_Gramps#Installing_your_translation]] (englisch)* [[Howto:Change_the_language_of_reports#Run_GRAMPS_in_a_different_language]] (englisch) ===Mac OS X:Erstellen aus der Quelle====
Es gibt mehrere verschiedene Wege Gramps unter Mac OS X aus der Quelle zu erstellen. Einen Überblick über das Erstellen aus der Quelle findest du unter [[Mac OS X:Build from source]].
Einen älteren Ansatz zum erstellen findest du unter [[Mac OS X:Build from source:Native OS X]].
 
=== Gramps 4.x ===
 
THIS IS ONLY A ROUGH DRAFT AND NEEDS UPDATING FOR Gramps 4.x
 
==== General requirements ====
 
Gramps 4.x requires python 2.? or greater, pygtk 2.? or greater and librsvg2
 
==== Linux package requirements ====
 
Required
 
{|{{Prettytable}}
|-
!Debian /Ubuntu
!Fedora /Redhat
!Comment
|-
|python
|python
|Required (needs version 2.? or later)
|-
|python-gtk2
|pygtk2
|Required (needs 2.? or greater)
|-
|[http://docs.python.org/library/bsddb.html BSDDB]
|[http://docs.python.org/library/bsddb.html BSDDB]
|Current backend
|-
|xdg-utils
|xdg-utils
|Required for Gramps-3.1.x or later
|}
 
Required for building
 
{|{{Prettytable}}
|-
!Debian /Ubuntu
!Fedora /Redhat
!Comment
|-
|librsvg2-common
|librsvg2
|Required for building
|-
|libglib2.0-dev
|glib2-devel
|Required for building
|-
|
|librsvg2-devel
|Required for building
|-
|intltool
|intltool
|Required for building
|-
|
|gcc make gettext
|Required for building
|}
 
Strongly recommended
 
{|{{Prettytable}}
|-
!Debian /Ubuntu
!Fedora /Redhat
!Comment
|-
|
|
| osmgsmap
|-
| graphviz
| graphviz graphviz-python
| Required for some reports and views
|-
|
|
| PyICU
|}
 
Optional
 
{|{{Prettytable}}
|-
!Debian /Ubuntu
!Fedora /Redhat
!Comment
|-
|python-gtkspell
|gnome-python2-gtkspell
|Suggested for running (spell check). Included in the python-gnome2-extras package in older Debian distributions.
|-
|rcs
|rcs
|Suggested for running
|-
| python-webkit python-gtkmozembed
| WebKitgtk pywebkitgtk
| Required for the HTML view
|-
| python-pygoocanvas
| goocanvas pygoocanvas
| Required for [[Graph View]]
|-
|
| Django
| Required for http://gramps-connect.org [[Gramps-Connect: Introduction|Gramps-Connect]]
|-
| python-pyexiv2
| pyexiv2
| Required for the Metadata Viewer and Edit Exif Metadata gramplets
|-
| libosmgpsmap-dev python-osmgpsmap
| osm-gps-map
| Required for the Geography views
|-
| gtk2-engines-pixbuf
|
| Solves issue with 'Unable to locate theme engine in module_path: "pixmap"'
|}
 
Under Redhat/Fedora you can install all of the above with:
 
<pre>
sudo yum install python pygtk2 xdg-utils rcs gnome-python2-gtkspell librsvg2 \
librsvg2-devel intltool gnome-doc-utils gcc automake autoconf autogen \
gettext WebKitgtk pywebkitgtk goocanvas pygoocanvas graphviz graphviz-python \ Django pyexiv2 inkscape ImageMagick
</pre>
 
====Obtaining the source====
 
There are two ways to get the source code: download a stable version source, or checkout the source from svn. Please, now is the time to read the [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/INSTALL?view=markup INSTALL] and [http://gramps.svn.sourceforge.net/viewvc/gramps/trunk/README?view=markup README] files accompanying the code. They come with the most recent information. Details on each download method:
 
'''1. Download a stable version'''
 
* The latest stable version of Gramps can be downloaded from the [http://sourceforge.net/projects/gramps/files/ Gramps SourceForge file area]. Eg: gramps-{{version}}.tar.gz. Extract this file into a directory:
<code>
tar xzvf gramps-zzz.tar.gz
</code> and then go into this directory:<code>
cd gramps-zzz
</code>
* If you are interested in testing out the very latest development versions of Gramps, they can be obtained from SVN, see [[Brief introduction to SVN#Unstable_development:_.22trunk.22|Brief introduction to SVN]]. The SVN versions of Gramps are potentially very dangerous as they have not been extensively tested - especially the "trunk" version which contains features that may still be partly implemented. Be aware that they may be prone to crashing and cause extensive data loss. Please use with extreme caution - and only ever on a copy of your data!
 
'''2. Download from SVN'''
 
You can get a branch version (similar as above) or the latest bleeding-edge version through SVN, such as:
 
svn co https://svn.code.sf.net/p/gramps/code/tags/gramps-4.0.0/ gramps
 
for the most recent development version, see [[Getting started with Gramps Trunk]].
 
====Upgrading Gramps====
 
If you have an older version of the Gramps source code installed you need to make a decision what you want to do with it before installing a later version. If you wish to keep the old version, make sure that you read the instructions in the INSTALL file regarding the use of the --prefix option to specify where the new version gets installed.
 
Should you just want to do a straightforward replacement instead, make sure that you remove the older version before you install the new version. '''Do not install over the top of the old version.''' As new versions of Gramps are developed, some functionality is occasionally rewritten in different ways. If you install over the top of an existing installation you run the risk that the old code left behind from the old version may be used instead of the new, sometimes with unintended consequences. If you installed from source, the best way of removing the old version is to run<code>
make uninstall</code>
 
as root '''from where you installed the old version'''. Use your distribution's package manager to uninstall if your old version was installed as a package.
 
'''Note that you should use your old Gramps version to export backup copies to GRAMPS XML before removing the old version.'''
 
==== Build on Linux ====
 
Gramps provides a script that can be used to prepare the code for building. This script automatically calls the standard configure script:<code>
./autogen.sh </code> # as regular user
 
This script will report any missing dependencies. Install these (see also INSTALL file). Building from source code typically requires that the development versions of the required libraries be installed. You might consider setting a prefix path with autogen.sh, see the INSTALL file for instructions. Standard install is in /usr/local.
 
Once a successful run of autogen.sh has been completed, you can run the typical make procedure. <code>
make </code> # as regular user
 
then <code>
make install </code> # as root
 
Local installation without root privileges is possible, instructions are available on the INSTALL file, most importantly one needs to supply a <code>--prefix=</code> and a <code>--with-mime-dir=</code> argument to <code>autogen.sh</code>.
 
==== Siehe auch ====
* $GRAMPSHOME in [[De:Gramps_3.4_Wiki_Handbuch_-_Kommandozeilen_Referenz#Umgebungsvariablen|Umgebungsvariablen]]
* [[Translating_Gramps#.24GRAMPSI18N_.28for_your_locale.29| $GRAMPSI18N (for your locale) ]] (englisch)
* [[Installation_alternatives]] (englisch)
* [[Translating_Gramps#Installing_your_translation]] (englisch)
* [[Howto:Change_the_language_of_reports#Run_GRAMPS_in_a_different_language]] (englisch)
[[Category:De:Documentation]]
[[Category:Developers/Installation]]
[[Category:Developers/Packaging]]
11,039
edits

Navigation menu