# Help on building gramps from source

**URL:** <https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982>\
**Category:** Help\
**Created:** [February 25, 2024, 12:36pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982 "2024-02-25T12:36:49Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcsaaver](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/jcsaaver/32/471_2.png) [@jcsaaver](https://gramps.discourse.group/u/jcsaaver)\
**Post date:** [February 25, 2024, 12:36pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/1 "2024-02-25T12:36:50Z")

</div>

I am trying to install gramps from a git repository.  
Here is what I did:

I cloned the branch maintenance/gramps52 into a local repository using `git clone --single-branch --branch maintenance/gramps52 https://github.com/gramps-project/gramps.git`

I `cd` to the repository

Then run `python3 setup.py build`

And got this message:

```python
running build
error: [Errno 2] No such file or directory: 'msgfmt'

```

I think the error occurs when creating the mo file for arabic, as in the “build/mo” folder there is only an “ar” folder.

Am I doing something wrong?

gramps: 5.2.1-e9b8026ae  
o.s.: linux  
kernel: 6.5.0-17-generic

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [February 25, 2024, 1:20pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/2 "2024-02-25T13:20:08Z")

</div>

Did you read the contents of the INSTALL file?

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [February 25, 2024, 1:48pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/3 "2024-02-25T13:48:22Z")

</div>

You need to install the _gettext_ package. It is required by the _intltool_ package which is listed in our build dependencies.

If you want v5.2.0 then checkout that tag:

```plaintext
git checkout v5.2.0

```

Otherwise you will get the wrong version number and possibly other changes made since the release. (There are none at the moment.)

Then you can build with:

```python
python setup.py build

```

Finall install with:

```python
sudo python setup.py install --root=/

```

The `--root=/` is needed to prevent Gramps being installed as a Python egg.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [February 25, 2024, 3:04pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/4 "2024-02-25T15:04:48Z")

</div>

As far as I can see the user has the right branch, because he cloned just that.

And I can also see that he’s running Ubuntu 20.04.

And for that, we have instructions in the INSTALL file that mention a single command that can download all the dependencies for him. That´s why I mentioned that file, and did not spell it out for him.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [February 25, 2024, 3:11pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/5 "2024-02-25T15:11:17Z")

</div>

> [@ennoborg](#):
>
> As far as I can see the user has the right branch, because he cloned just that.

The _gramps52_ branch is now 2 commits ahead of the v5.2.0 tag.

If you build from the tip of the _gramps52_ branch, Gramps will report a development version (5.2.1-e9b8026ae) along with the usual warning. It shouldn’t cause a problem though.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [February 25, 2024, 3:29pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/6 "2024-02-25T15:29:28Z")

</div>

The proper install command is

`sudo python setup.py install --root=/`

And that works on Fedora too. I put that on my laptop to test.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [February 25, 2024, 3:30pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/7 "2024-02-25T15:30:37Z")

</div>

Thanks. I didn’t notice that I had build twice.

---

<div class="post-metadata">

**Author:** ![jcsaaver](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/jcsaaver/32/471_2.png) [@jcsaaver](https://gramps.discourse.group/u/jcsaaver)\
**Post date:** [February 25, 2024, 8:43pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/8 "2024-02-25T20:43:17Z")

</div>

Thanks! this worked!

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [February 26, 2024, 5:57pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/9 "2024-02-26T17:57:00Z")

</div>

> [@Nick-Hall](#):
>
> Thanks. I didn’t notice that I had build twice.

Looking at the Fedora BuildSystem [for packageID 1969 (Gramps)](https://koji.fedoraproject.org/koji/packageinfo?packageID=1969) :  
And idea why is there a “fc41” finished before the “fc40”

**1 through 50 of 217** [\>\>\>](https://koji.fedoraproject.org/koji/packageinfo?buildStart=50&packageID=1969&buildOrder=-completion_time&tagOrder=name&tagStart=0#buildlist)

| [NVR](https://koji.fedoraproject.org/koji/packageinfo?buildOrder=nvr&packageID=1969&tagOrder=name&tagStart=0#buildlist) | [Built by](https://koji.fedoraproject.org/koji/packageinfo?buildOrder=owner_name&packageID=1969&tagOrder=name&tagStart=0#buildlist) | [Finished](https://koji.fedoraproject.org/koji/packageinfo?buildOrder=completion_time&packageID=1969&tagOrder=name&tagStart=0#buildlist) ![descending sort](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/f/fdbbcc59455b894352aeb84754124eb45104dd3d.gif) | [State](https://koji.fedoraproject.org/koji/packageinfo?buildOrder=state&packageID=1969&tagOrder=name&tagStart=0#buildlist) |
| --- | --- | --- | --- |
| [gramps-5.2.0-1.fc40](https://koji.fedoraproject.org/koji/buildinfo?buildID=2408619) | [limb](https://koji.fedoraproject.org/koji/userinfo?userID=279) | 2024-02-23 19:10:44 | ![complete](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/9/9c07586e2c9b390c6cb71e3c52c7ae193258b9de.png "complete") |
| [gramps-5.2.0-1.fc41](https://koji.fedoraproject.org/koji/buildinfo?buildID=2408618) | [limb](https://koji.fedoraproject.org/koji/userinfo?userID=279) | 2024-02-23 19:10:26 | ![complete](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/9/9c07586e2c9b390c6cb71e3c52c7ae193258b9de.png "complete") |

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [February 26, 2024, 8:04pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/10 "2024-02-26T20:04:33Z")

</div>

Because someone’s building it for Rawhide.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [February 26, 2024, 8:16pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/11 "2024-02-26T20:16:22Z")

</div>

Had to lookup that Rawhide is the Fedora codename for its development branch.

How can you tell which is release vs. Rawhide?

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [February 26, 2024, 9:05pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/12 "2024-02-26T21:05:45Z")

</div>

By checking the version codes, and their status. Fedora 39 is the one that I used to test the install from source, so I was a little suprised to find a version 41 being built already. And then I mentioned the Rawhide term to see how you would react. 🙂

Anyway, here’s the release plan according to Wikipedia:

> **[Fedora Linux release history](https://en.wikipedia.org/wiki/Fedora_Linux_release_history)**
>
> Fedora Linux is a popular Linux distribution developed by the Fedora Project. Fedora attempts to maintain a six-month release schedule, offering new versions in May and November, although some releases have experienced minor delays.
> Fedora Core 1 was the first version of Fedora and was released on November 6, 2003. It was codenamed Yarrow. Fedora Core 1 was based on Red Hat Linux 9. 
> Some of the features in Fedora Core 1 included:
> Fedora Core 2 was released on May 18, 2004, codenamed Tettnang...

And that suggests that we may simply concentrate on fc39 and fc40, or even just fc39.

I found the name here:

> **[Rawhide](https://docs.fedoraproject.org/en-US/releases/rawhide/)**
>
> Learn more about Fedora Linux, the Fedora Project & the Fedora Community.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [March 27, 2024, 9:06pm UTC](https://gramps.discourse.group/t/help-on-building-gramps-from-source/4982/13 "2024-03-27T21:06:41Z")

</div>

Closed on March 27, 2024, 9:06pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
