How to install gettext’s msgfmt from source?

Posted on

Problem :

I want to compile git which fails due to /bin/sh: msgfmt: command not found which is provided by gettext. I’m compiling on a system (Synology DSM 6.1) which has no package manager which easily provides a gettext package out-of-the-box, so I need to get the gettext build process to create msgfmt (with default configure options it’s no findable in the installation prefix after ./configure --prefix=... && make && make install), but I don’t find any configure option of gettext to include creation of msgfmt in the build result nor any configure option of git to skip the part which needs msgfmt.

I’m now using gettext 0.19.8.1 and git 2.11.1, but am also happy for solutions which require other newer or older versions.

Solution :

msgfmt can be installed by running ./configure && make && make install in the gettext-tools directory under the gettext source root.

I’m compiling on a system (Synology DSM 6.1) which has no package manager which easily provides a gettext package out-of-the-box, so I need to get the gettext build process to create msgfmt

No. If you want Git on Synology, you have to install Git, from vendor’s packages or community packages. It can be pure Git (with 100% future headaches around “server”, “web-frontend”), Git Server of full-ALM tool GitLab

Leave a Reply

Your email address will not be published. Required fields are marked *