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.
Error:
Problem: cannot install the best candidate for the job
nothing provides perl-Text-Iconv needed by openwebmail-2.54-8.el9.noarch
skip77
September 2, 2023, 9:17pm
2
Searching for that on pkgs.org , it looks like it’s available in the EPEL (Extra Packages for Enterprise Linux) repository: https://rhel.pkgs.org/9/epel-x86_64/perl-Text-Iconv-1.7-43.el9.x86_64.rpm.html
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.
2 Likes
toracat
September 2, 2023, 9:18pm
3
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.
2 Likes
l
ldd /usr/lib64/perl5/vendor_perl/auto/Text/Iconv/Iconv.soNBG
linux-vdso.so.1 (0x00007ffd4ade3000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fbfc2af3000)
libperl.so.5.26 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fbfc2400000)
/lib64/ld-linux-x86-64.so.2 (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/Iconv.so
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/Iconv.so
Success: have perl-Text-Iconv