Changes

Jump to: navigation, search

Linux:Build from source

1,373 bytes added, 03:03, 17 January 2022
no edit summary
{{languages|Linux:Build from source}}{{stub}}How to build Gramps from source on Linux.
How to build Gramps from source on Linux. Building from source is appropriate for:
* 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.
Follow If installing using a tar or git source, you need to replace 'python' with 'python3' for the instructions various setup and run commands below. The following packages are required, and should be installed automatically as dependencies with the Gramps package. (This list is for installing Gramps 4.2.0 to 4on Kubuntu 15.10.) {{man note|For v5.0 add sqlite3.}} {|{{Prettytable}}|-!Debian /Ubuntu !Fedora /Redhat!Comment|-| gir1.2-atk-1.0| | |-| gir1.2-freedesktop| | |-| gir1.2-gdkpixbuf-2.0| | |-| gir1.2-gexiv2-0.10| | |-| gir1.2-gtk-3.0| | |-| gir1.2-osmgpsmap-1.0| | |-| gir1.2-pango-1.0|||-| graphviz|||-| libcdt5|||-| libcgraph6|||-| libgexiv2-2|||-| libgvc6|||-| libgvpr2|||-| libosmgpsmap-1 and only use .0|||-| libpathplan4|||-| python3-bsddb3|||-| python3-cairo|||-| python3-gi-cairo|||-| python3-icu|||-| python3.5|||-| python3.5-minimal|||} With the standard dependencies, Gramps still gives some warnings about missing packages. The following packages address these warnings. {|{{Prettytable}}|-!Debian /Ubuntu !Fedora /Redhat!Comment|-| language-pack-gnome-en| | or the requirements meant equivalent for python 3 or greater eg: If you need to run python type <code>your language and locale|-| gir1.2-goocanvas-2.0| | |-| python3</code>-django| | |}
= 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
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 ====The native windows support for Gramps 4.x takes a bit more effort. You find can follow the a walk-through for* [[Run_Gramps40_for_Windows_from_source_using_Python_2Run Gramps40 for Windows from source using Python 2.7.3]]* Run Gramps40 for Windows from source using Python 3.4 ('''Not available, but you should be able to follow the instructions for the Python 2.7.3 version and modify accordingly ''')
An alternative on windows is ot to install [https://www.virtualbox.org/ virtualbox] and then install K/X/Ubuntu as indicated above, which will give you linux Linux in windows.
= 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]]
1,965
edits

Navigation menu