Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Compile fails - msgfmt missing [Solved]

Post Reply
User avatar
TenderFoot
Forum Regular
Forum Regular
Posts: 630
Joined: Sun May 03, 2009 2:34 pm

Compile fails - msgfmt missing [Solved]

#1

Post by TenderFoot » Sun Mar 17, 2019 9:33 pm

Trying to compile ms-sys (a useful utility to rescue a system!). Unfortunately it fails with

Code: Select all

mkdir -p mo
msgfmt -o mo/sv.mo po/sv.po
make: msgfmt: Command not found
Makefile:142: recipe for target 'mo/sv.mo' failed
make: *** [mo/sv.mo] Error 127
It seems msgfnt has been replaced by liblocale-msgfmt-perl so installed it in the hope that some sort of symlink may occur but still no joy.

Is there a way forward (eg test repo or ppa)?
Last edited by TenderFoot on Sat Apr 13, 2019 8:45 am, edited 1 time in total.

User avatar
Stevo
Developer
Posts: 20182
Joined: Fri Dec 15, 2006 8:07 pm

Re: Compile fails - msgfnt missing

#2

Post by Stevo » Sun Mar 17, 2019 10:07 pm

I know offhand from many build failures that it's provided by the gettext package, but you can also do a name search for files provided by Debian packages at packages.debian.org. I know there's also some dpkg command to do so that I'm too lazy to look up.

User avatar
kmathern
Developer
Posts: 9720
Joined: Wed Jul 12, 2006 2:26 pm

Re: Compile fails - msgfnt missing

#3

Post by kmathern » Sun Mar 17, 2019 10:11 pm

Here's the dpkg name search (-S option)
$ dpkg -S msgfmt
gettext-doc: /usr/share/doc/gettext-doc/msgfmt.1.html
gettext: /usr/bin/msgfmt
gettext: /usr/share/man/man1/msgfmt.1.gz

User avatar
TenderFoot
Forum Regular
Forum Regular
Posts: 630
Joined: Sun May 03, 2009 2:34 pm

Re: Compile fails - msgfnt missing

#4

Post by TenderFoot » Fri Apr 12, 2019 5:30 pm

Thanks for your reply and sorry for delayed response - my attention diverted by (even) more pressing issues.

This is the output from your suggestion
$ dpkg -S msgfmt
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl/copyright
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl/changelog.Debian.gz
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl/changelog.gz
Which clearly doesn't match yours.

Perhaps I misunderstood?

User avatar
Stevo
Developer
Posts: 20182
Joined: Fri Dec 15, 2006 8:07 pm

Re: Compile fails - msgfnt missing

#5

Post by Stevo » Fri Apr 12, 2019 9:36 pm

Y̶o̶u̶r̶ ̶r̶e̶p̶o̶s̶i̶t̶o̶r̶i̶e̶s̶ ̶s̶e̶e̶m̶ ̶t̶o̶ ̶b̶e̶ ̶m̶i̶s̶s̶i̶n̶g̶ ̶D̶e̶b̶i̶a̶n̶ ̶m̶a̶i̶n̶!̶ Or maybe that command only searches installed packages. Install gettext and run it again.
Last edited by Stevo on Sat Apr 13, 2019 5:50 pm, edited 1 time in total.

User avatar
TenderFoot
Forum Regular
Forum Regular
Posts: 630
Joined: Sun May 03, 2009 2:34 pm

Re: Compile fails - msgfmt missing [Solved]

#6

Post by TenderFoot » Sat Apr 13, 2019 9:35 am

Gettext installed...
$ dpkg -S msgfmt
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl/copyright
gettext: /usr/share/man/man1/msgfmt.1.gz
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl/changelog.Debian.gz
liblocale-msgfmt-perl: /usr/share/doc/liblocale-msgfmt-perl/changelog.gz
gettext: /usr/bin/msgfmt
gettext: /usr/lib/gettext/msgfmt.net.ex
ms-sys now safely compiled (which adds to MX capabilities as a rescue tool)!

Decided to remove liblocale-msgfmt-perl but am concerned about the number of additional packages to be removed - including virtualbox-guest-x11 - so have left it for now as it shouldn't do any harm?

The comment about missing debian main repo is a little worrying. This may be a consequence of parallel post viewtopic.php?f=108&t=49638&sid=9177e83 ... c61aa4ba5b and the link therein to viewtopic.php?f=131&t=49368? - ie deb http://ftp.uk.debian.org/debian/ jessie-updates main contrib non-free is now disabled?

Anyway OP marked as Solved.

User avatar
Stevo
Developer
Posts: 20182
Joined: Fri Dec 15, 2006 8:07 pm

Re: Compile fails - msgfmt missing [Solved]

#7

Post by Stevo » Sat Apr 13, 2019 2:11 pm

That was my mistake. Your repos are fine, "dpkg -S" only searches installed programs.

You don't need the virtualbox-guest packages if you're not running inside a vbox virtual machine. Maybe our installer can remove them if it detects that you're installing on a real machine.

User avatar
TenderFoot
Forum Regular
Forum Regular
Posts: 630
Joined: Sun May 03, 2009 2:34 pm

Re: Compile fails - msgfmt missing [Solved]

#8

Post by TenderFoot » Sat Apr 13, 2019 5:26 pm

Thanks. I do indeed have Virtualbox installed on a real machine - ie this MX-16!

However, this does present the opportunity to ask a question that was to be another post.

I have noticed that the virtualbox repo is disabled here yet have no recollection of enabling it to install vb as it appears in synaptic anyway - confirmed on another machine that does not yet have it installed?

User avatar
Stevo
Developer
Posts: 20182
Joined: Fri Dec 15, 2006 8:07 pm

Re: Compile fails - msgfmt missing [Solved]

#9

Post by Stevo » Sat Apr 13, 2019 5:53 pm

The Debian and MX repositories have virtualbox packages that integrate better than the Oracle ones. The guest packages are from Debian/MX, Oracle doesn't have them.

You don't need the guest packages if your install is on bare metal, only inside a virtual machine.

Post Reply

Return to “Software / Configuration”