Hi Dave,

At 2025-03-12T23:31:13-0500, Dave Kemper wrote:
> > $ groff -ms /tmp/sample.groff > /tmp/sample.ps
> >
> > troff: fatal error: can't find macro file s
> 
> This suggests something installed incorrectly on your system.  What
> type of system are you on?  Does it have a
> /usr/share/groff/current/tmac directory?  This is a common location
> where tmac files are installed, including s.tmac, the file that SHOULD
> be loaded with the "-ms" flag.

This may be due to distribution packages subsetting groff.

For instance in Debian (thus Ubuntu et al.), the "groff-base" 1.22.4
package does not ship the "s.tmac" file.

$ dpkg -L groff-base | grep -F /s.tmac || echo NO MATCH
NO MATCH

...but the "groff" package does.

$ dpkg -L groff | grep -F /s.tmac || echo NO MATCH
/usr/share/groff/1.22.4/tmac/s.tmac

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to