Skip to content
Contents
GuidesOpenWrt

OpenWrt POD conversion: is the command missing or is it if.pm?

A missing pod2text executable and a Perl error inside Pod/Simple/BlackBox.pm occur at different stages. Use a small document you wrote yourself to distinguish an installation problem from an input problem.

A missing pod2text executable and a Perl error inside Pod/Simple/BlackBox.pm occur at different stages. Use a small document you wrote yourself to distinguish an installation problem from an input problem.

Check the commands and the parser separately

apk list --installed perlbase-pod
command -v pod2text || echo no-pod2text
command -v pod2man || echo no-pod2man
perl -MPod::Simple -e 1

The last command can succeed silently. On our 25.12.6 x86/64 guest, perlbase-pod 5.40.0-r6 provided neither executable. Loading the parser separately failed on if.pm. Check for perlbase-if in the matching feed only when that file is missing. If the first error names another file, start there.

From missing if.pm to rendered sample text

work=$(mktemp -d) || exit 1
cd "$work" || exit 1
printf '%s\n' '=head1 NAME' '' 'Lab54 - known sample' '' '=cut' > sample.pod
apk list perlbase-if
apk add --simulate perlbase-if
apk add perlbase-if
perl -MPod::Simple::Text -e 'Pod::Simple::Text->new->parse_file(shift)' sample.pod
command -v pod2text || echo no-pod2text

The sample renders after installing the if module, while the command check still reports no-pod2text

Verify the output format you actually need

Inspect the simulated changes and available space before installing. Seeing Lab54 and known sample verifies text rendering. It does not generate a man page or install pod2man. If the deliverable is roff, convert on a build host with pod2man and open the output with man. Keep the original package list and simulate removal before reverting any new package that other programs may use.

When OpenWrt cannot install a package

Explore hardware

Comments