msgfmt.pl - Compile .po files to .mo files
This script does the same thing as msgfmt from GNU gettext-tools, except this is pure Perl. Because it's pure Perl, it's more portable and more easily installed (via CPAN). It has two other advantages. First, it supports directories, so you can have it process a full directory of .po files. Second, it can guess the output file (if you don't specify the -o option). If the input is a file, it will s/po$/mo/ to figure out the output file. If the input is a directory, it will write the .mo files to the same directory.
Locale::Msgfmt
To install Locale::Msgfmt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Msgfmt
CPAN shell
perl -MCPAN -e shell install Locale::Msgfmt
For more information on module installation, please visit the detailed CPAN module installation guide.