rmsgfmt command not found

In this troubleshooting guide we learn how to fix rmsgfmt command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

rmsgfmt: command not found

or when using sudo you get the following error message

sudo: rmsgfmt: command not found

Solutions to rmsgfmt: command not found

How To Fix rmsgfmt: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rmsgfmt is provided by ruby-gettext package.

ruby-gettext is:

This Ruby package is a localization library and toolset modeled after GNU gettext, and with a similar simple API.

It provides:

  • rxgettext - creates gettext-compatible PO files from Ruby scripts;
  • rmsginit - create a new PO file with user’s environment and input;
  • rmsgfmt - creates a MO file from a PO file;
  • rmsgmerge - extracts translatable strings from Ruby scripts.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ruby-gettext

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ruby-gettext.

sudo apt -y install ruby-gettext

Or if you have aptitude installed you can use the following command.

sudo aptitude install ruby-gettext

Summary

In this tutorial we learn how to fix rmsgfmt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.