Hi everyone.
To keep the “…trains running on time” and to avoid reverting to 5.2, I have spun up a VM containing Fedora42 so I can continue working on Gramps 6.0.1 but for the life of me I cannot find a way to satisfy the Goocanvas requirements in Fedora. Can someone please direct me what is/are the yum/dnf commands to get it installed. I think I have everything else in place but can’t find a way to make FTV install/work without this step.
Also will the new ‘hatch’ toml based installer be able to build/install Gramps without a venv and will it be able to include all dependencies in a distro-neutral manner?
Thanks in advance.
Brian
It depends on what you’re looking for – the run-time or the development versions, and what version of goocanvas.
There is a goocanvas 1.0.0 package known as goocanvas and a goocanvas 2.0.4 known as goocanvas2, both in the standard f42 repositories. Dnf search is your friend:
$ dnf search goocanvas
should list both possible libraries.
In Fedora, development libraries are usually the library name with -devel appended. So to install both run-time and development packages for the 2.0.4 version:
$ sudo dnf install goocanvas2 goocanvas2-devel
It looks like there are OCaml and perl bindings available for goocanvas2: see ocaml-lablgtk3-goocanvas2 and perl-GooCanvas2. I don’t see a python3 binding, though, if that’s what you’re looking for.
While working on the 6.0.1 flatpak yesterday I did a fresh Gramps 6.0.1 source install on a Fedora 42 VM for comparison. Here are some commands I used, like mentioned earlier by ahs3 I used dnf search a lot while going over the prerequisites at the Gramps github. These commands could be combined, but I am just scrolling up through the VM’s terminal history to post these
sudo dnf install rcs sudo dnf install enchant2 sudo dnf install python3-enchant sudo dnf install gspell sudo dnf install python3-orjson sudo dnf install python3-pip (this is needed to install Gramps with a pip command since the old python3 install method is deprecated) sudo dnf install python3-pyicu sudo dnf install graphviz sudo dnf install python3-pygraphviz sudo dnf install librsvg2 sudo dnf install pango sudo dnf install python3-cairo
pip3 install . (in the directory containing setup.py instead of python3 setup.py build)
I skipped osmgpsmap because I wasn’t testing maps and didn’t need it. I didn’t see it in the Fedora repos, although the rpmfusion site might have it. Otherwise, the source is at git://github.com/nzjrs/osm-gps-map and I think there are other dependencies related to maps and osmgpsmap. I might have skipped something else, so it isn’t a complete list of prerequisites for Fedora.
Sidenote, Fedora by default enables its own flatpak repo but it is not always kept updated as well as flathub. You can enable or disable repositories in Gnome Software in the settings icon at the top right.
By the way, FamilyTreeView works on the Gramps 6.0.1 flatpak from flathub. Follow the instructions at GitHub - ztlxltl/FamilyTreeView: A third-party addon for Gramps providing a navigable tree representation of ancestors, descendants and other related persons. for adding the project in addons so Gramps knows which github to pull the view from, then restart Gramps. Even though I couldn’t find a prerequisite list for FTV, I just verified it works on the flatpak. So it looks like the flatpak already has enough prerequisites (including goocanvas) for it to work. You don’t actually have to switch distributions to use FTV on Gramps 6.0.1 if you don’t mind using a flatpak.