1,965
edits
Changes
no edit summary
{{languages|Linux:Build from source}}{{stub}}How to build Gramps from source on Linux.
* Developers who need to be able to modify the source and have those modifications take effect.
* Packagers who need to be able to construct a package for installation by user.
Or use your distribution's package manager to uninstall if your old Gramps version was installed as a package.
= Gramps 4.2 and up=
{{man menu|Gramps 4.2 and beyond only work with Python 3.2 or greater.}} This should be handled automatically if Gramps is installed from your distro's repository.
= Gramps 4.0 to 4.1 =
== Obtain the source ==
There are two ways to get the source code: download a released version source, or clone the source from Git.
| [http://docs.python.org/library/bsddb.html BSDDB]
| [http://docs.python.org/library/bsddb.html BSDDB]
| Current backend, <code>python3-bsddb3 </code> for python 3!
|-
| xdg-utils
| python-pygoocanvas gir1.2-goocanvas-2.0-9
| goocanvas pygoocanvas
| Required for [[Addon:Graph View]]
|-
|python3-django
| Django
| Required for http://gramps-connect.org [[Gramps-Connect: Introduction|Gramps-Connect]]
Local installation without root privileges is possible, instructions are available on the INSTALL file.
== Build, Install and Run Gramps 4.0 to Gramps 45.1 x ==Note that the 'python' commands below need to be 'python3' for Gramps 4.2 and later.
python setup.py build
The way you run Gramps depends on whether you downloaded a release or downloaded from the Git repository.
==== Running from a tarball release ====
See [http://gramps.1791082.n4.nabble.com/No-joy-building-Gramps-4-0-1-from-source-tp4661381p4661443.html]
With a tarbaltarball, gramps should be run from the build directory, or from installed version (which can be installed locally).
python setup.py build
go to where the scripts are installed:
* For python 2 look in: <code>cd build/scripts-2.7</code> * For python 3 look in: <code>cd build/scripts-3.4</code> ({{man menu|Note the number 3.4 depends on your version of python and in most cases where you see the number 2.7replace it with your version number in the example commands below}})
in build GRAMPS_RESOURCES must also be set to actually run it:
If you now run
== Full install walkthrough Gramps 4 Ubuntu derivatives ==
Following walkthrough was done on a clean install of Kubuntu 13.04 which did have the GTK applications firefox, inkscape and gimp installed. Equal Equivalent steps should be done on other platforms.
sudo apt-get install git
then use the gnome-tweak-tool to switch to that. For KDE you need to go also to Settings->Appearance->GTK and set the GTK 3 theme there to the one you installed.
==== Full install walkthrough walk-through Windows ====On The native windows, you support for Gramps 4.x takes a bit more effort. You can install follow the walk-through for* [[https://wwwRun Gramps40 for Windows from source using Python 2.virtualbox7.org/ virtualbox3] and then install K/X/Ubuntu as indicated above]* Run Gramps40 for Windows from source using Python 3.4 ('''Not available, which will give but you linux in windowsshould be able to follow the instructions for the Python 2.7. 3 version and modify accordingly''')
= Gramps 3.4.x =
| python-pygoocanvas
| goocanvas pygoocanvas
| Required for [[Addon:Graph View]]
|-
| graphviz
= See also =
* [[Gramps_4.2_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Command_Line#GRAMPSHOME |$GRAMPSHOME]]
* [[Translating_Gramps#.24GRAMPSI18N_.28for_your_locale.29| $GRAMPSI18N (for your locale) ]]
* [[Installation_alternatives]]
* [[Translating_Gramps#Installing_your_translation|Installing your translation (Gramps 3.x and earlier)]] or [[Translation_environment4|Gramps 4.x and later]]
* [[Howto:Change_the_language_of_reports#Run_Gramps_in_a_different_language|Howto:Change the language of reports - Run Gramps in a different language]]
* [[Fedora rpmRPM]]
[[Category:Documentation]]
[[Category:Developers/Installation]]
[[Category:Developers/Packaging]]