Rocky 9.2 Missing Perl module perl-Text-Iconv

Cannot install openwebmail, missing perl-Text-Iconv

dnf -y install openwebmail
Last metadata expiration check: 0:09:32 ago on Sun 03 Sep 2023 06:14:41.
Problem: cannot install the best candidate for the job

  • nothing provides perl-Text-Iconv needed by openwebmail-2.54-8.el9.noarch

Searching for that on , it looks like it’s available in the EPEL (Extra Packages for Enterprise Linux) repository:

Rocky has an easy way to enable this 3rd-party repository: dnf install epel-release (assuming the Rocky Extras repo is enabled, which it should be by default)

Once enabled, DNF should be able to find the dependency.


perl-Text-Iconv is available from EPEL.

Run ‘sudo dnf install epel-release’ to enable the repo.

[Note] Skip was a split second faster than I. :wink:


ldd /usr/lib64/perl5/vendor_perl/auto/Text/Iconv/Iconv.soNBG (0x00007ffd4ade3000) => /lib64/ (0x00007fbfc2af3000) => not found => /lib64/ (0x00007fbfc2400000)
/lib64/ (0x00007fbfc2b04000)

So I built it from source.
------ perl-Text-Iconv missing for openwebmail -------

cpanm Text::Iconv

Still not found as installed package
dnf install -y rpmdevtools rpmlint
mkdir /root/tmp
cpanm App::CPANtoRPM
echo "
%packager /usr/bin/rpmbuild
%_topdir /root/tmp
" > ~/.rpmmacros
cpantorpm --install-base /usr Text::Iconv
dnf -y localinstall /root/tmp/RPMS/x86_64/perl-Text-Iconv-1.7-1.el9.x86_64.rpm
Then , it seems, replace /usr/lib64/perl5/vendor_perl/auto/Text/Iconv/
with one gleaned from /root/tmp/RPMS/x86_64/perl-Text-Iconv-1.7-1.el9.x86_64.rpm
rpm2cpio perl-Text-Iconv-1.7-1.el9.x86_64.rpm > /tmp/yy; cd /tmp; cpio -id < yy
Test libs
ldd /usr/lib64/perl5/vendor_perl/auto/Text/Iconv/

Success: have perl-Text-Iconv

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.