Changes

From Gramps

De:Installation

3,597 bytes added, 09:30, 14 May 2013
Gramps 4.x
=== Gramps 4.x ===
THIS IS ONLY A ROUGH DRAFT AND NEEDS UPDATING FOR ==== General requirements ==== Gramps 4.0 requires python 2.7 or python 3.2 or greater. At the moment, python 2.7 is still the most stable way to use Gramps!Also needed are GTK 3.0 or greater, pygobject 3.3.2 or greater, cairo, pango, pangocairo with introspection bindings (the gi packages), librsvg2 (svg icon view), xdg-utils. Furthermore, bsddb3 is required for Python 3.2 (not python 2.7). ==== Full install walkthrough ====Following walkthrough was done on a clean install of Kubuntu 13.04 which did have the GTK applications firefox, inkscape and gimp installed. Equal steps should be done on other platforms.  sudo apt-get install subversion svn co https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40 gramps40 cd gramps40 sudo apt-get install intltool python setup.py build sudo apt-get install python-gobject python-gi python-cairo python-gi-cairo sudo apt-get install gir1.2-freedesktop gir1.2-pango sudo apt-get install gir1.2-gtk If you now run python Gramps.py -vyou should see all required packages are found. You can now start Gramps locally with the command  python Gramps.py  To install optional components, do the following:  sudo apt-get install python-pyicu graphviz rcs gir1.2-webkit-3 This gives all the easy optional functionality in Gramps. The rest is not yet present in Ubuntu 13.04, so if you want them, you need to compile them '''spell checking'''Remove first present version, check that this command does not remove programs you use! sudo apt-get remove libgtkspell-3-0 python-gtkspellcheck Now we obtain the code to build this package sudo apt-get install mercurial hg clone http://hg.code.sf.net/p/gtkspell/code gtkspell-code cd gtkspell-code sudo apt-get install build-essential sudo apt-get install libgirepository1.0-dev sudo apt-get install valac libgtk-3-dev aclocal ; autoheader; automake ; autoconf ./autogen.sh make sudo make install sudo cp /usr/local/lib/girepository-1.0/GtkSpell-3.0.typelib /usr/lib/girepository-1.0/ sudo cp /usr/local/lib/libgtkspell3-3.* /usr/lib/ '''osmgpsmap'''The geography view needs patches which are not included yet in the official version. sudo apt-get install git git clone git://github.com/nzjrs/osm-gps-map.git cd osm-gps-map sudo apt-get install libsoup2.4-dev gnome-common gtk-doc-tools ./autogen.sh --prefix /usr make sudo make install '''gexiv2'''Minimally version 0.5 is needed, but only 0.4 is available in 13.04. So remove 0.4 if present, and we add 0.5 or later ourselves. Obtain it from [http://www.yorba.org/download/gexiv2/], I downloaded 0.6.1, and extracted it in directory ''libgexiv2-0.6.1''. To install this  cd libgexiv2-0.6.1 sudo apt-get install exiv2 libexiv2-dev ./configure --enable-introspection --prefix=/usr make sudo make install '''run Gramps'''You can now use gramps from the source directory with python Gramps.py You could install Gramps, but you better wait for a packages distributed from [http://sourceforge.net/projects/gramps/files/] and install those via your package manager '''look and feel'''Normally, Gramps does not look that nicely when not used on Gnome desktop. To remedy this, install a theme switcher. You can edit configuration files if you don't like to install these dependencies, see eg [https://wiki.archlinux.org/index.php/GTK%2B#GTK.2B_3.x]
==== General requirements ==== sudo apt-get install gnome-tweak-tool
Gramps 4You can search on gtk 3 themes in your package manager and install one that you like.x requires python 2.? or greaterFor example, pygtk 2install clearlooks: sudo apt-get install clearlooks-phenix-themethen use the gnome-tweak-tool to switch to that.? or greater For KDE you need to go also to Settings->Appearance->GTK and librsvg2set the GTK 3 theme there to the one you installed.
==== Linux Paket Anforderungen ====
|python
|python
|Benötigt (Version 2.? 7 oder neuer)
|-
|python-gtk2
|pygtk2
|Benötigt (Version 2.? oder neuer)
|-
|python-cairo python-gi-cairo
|?
|Required
|-
|gir1.2-pango-1.0
|?
|Required
|-
|gir1.2-gtk
|?
|Required is GTK 3.6+
|-
|[http://docs.python.org/library/bsddb.html BSDDB]
|[http://docs.python.org/library/bsddb.html BSDDB]
|Current backend, python3-bsddb3 for python 3!
|-
|xdg-utils
|xdg-utils
|Benötigt für Gramps-3.1.x oder neuer
|-
|python-pyicu
|?
|Required for correct sorting
|-
|libgtkspell-3-0 python-gtkspell
|?
|Required spell checking
|}
|Zum Erstellen benötigt
|-
|python-dev libglib2.0-dev
|glib2-devel
|Zum Erstellen benötigt
|-
|python-gobject-dev libgirepository1.0-dev
| ?
|
|-
|libcairo2-dev python-cairo-dev
| ?
|
|-
|
| Für einige Berichte und Ansichten benötigt
|-
|python-pygoocanvas gir1.2-goocanvas-2.0-9|?| PyICU|-|python-pyexiv2|?|exiv data on pictures
|}
'''2. Download from SVN'''
You can get a branch version (similar as above) or the latest bleeding-edge version through SVN. You can download a specific release via a tag, such asor you can download the latest development.First, you need subversion installed, eg on Debian based linux: sudo apt-get install subversion
svn co httpsThen, download a tagged version://svn.code.sf.net/p/gramps/code/tags/gramps-4.0.0/ gramps
for the most recent svn co https://svn.code.sf.net/p/gramps/code/tags/gramps-4.0.0/ gramps400 or latest development version, see :  svn co https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40 gramps40  More info can be found in [[Getting started with Gramps Trunk]].
====Upgrading Gramps====
'''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>.
11,039
edits

Navigation menu