Error installing Date::Calc Perl module on Redhat Enterprise linux
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Enterprise Red hat linux without Yum and so downloaded the rpm src and not able to install . This is a prod machine and I need Date:Calc for some calculations etc.
Well ... as knudfl said (and you admitted) .. it's a SOURCE rpm,
it won't install just like that; you need to follow the proper
process (or, more sensibly, go to the RH site and download the
rpm for the module rather than the source rpm).
And rebuild it to perl-Date-Calc-5.4-1.2.2.1.<arch>.rpm
with : rpmbuild -bb perl-Date-Calc.spec
or : rpmbuild --rebuild perl-Date-Calc-5.4-1.2.2.1.src.rpm
I think he ment he has no internet access for that installation, or he installed RHEL without paying for it, in which case he should be using CentOS - free RHEL implementation.
a) No outside access so cant use "CPAN" or YUM like utilities
b) Compiling source failes as "rpmbuild" is not there on this prod machine
c) Tried downloading the binaries provided in this link
rpm -ivh perl-Date-Calc-5.4-1.2.2.1.i386.rpm
warning: perl-Date-Calc-5.4-1.2.2.1.i386.rpm: V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libc.so.6(GLIBC_2.4) is needed by perl-Date-Calc-5.4-1.2.2.1.i386
perl(:MODULE_COMPAT_5.8.8) is needed by perl-Date-Calc-5.4-1.2.2.1.i386
perl(Bit::Vector) is needed by perl-Date-Calc-5.4-1.2.2.1.i386
perl(Carp::Clan) is needed by perl-Date-Calc-5.4-1.2.2.1.i386
perl-Bit-Vector >= 6.4 is needed by perl-Date-Calc-5.4-1.2.2.1.i386
rtld(GNU_HASH) is needed by perl-Date-Calc-5.4-1.2.2.1.i386
Suggested resolutions:
/var/spool/up2dateperl-Bit-Vector-6.3-3.x86_64.rpm
/var/spool/up2dateperl-Date-Calc-5.3-9.x86_64.rpm
I can load the other perl modules but not sure I can load a new libc.so.6 ion this prod machine
Thanks for help but I am still running into a lot of dependencies. I need to get the MODULE_COMPAT installed for which I downloaded perl-5.8.8-9.el4s1_4.i386.rpm but then I got back 100s of conflicts from this .
I am tired of these rpms. Is there any file based install for PERL and the DateCalc so I can forget the whole rpm and it database and install this in directory and remove it when I am done ?
I am getting errors like
file /usr/share/man/man3/warnings::register.3pm.gz from install of perl-5.8.8-9.el4s1_4 conflicts with file from package perl-5.8.5-36.el4_5.2
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Please do not try to replace the system 'perl'
with an older version = perl-5.8.8-9.el4s1_4 .
Your installed version seems to be perl-5.8.5-36.el4_5.2 ?
The module ' Module::Compat ' is provided by
Module-Build-0.3601.tar.gz , use the "Cpan Search" please.
I am tired of these rpms. Is there any file based install for PERL and the DateCalc so I can forget the whole rpm and it database and install this in directory and remove it when I am done ?
Yum can be also used for updating/installing from file directory. Just copy entire repositories previously downloaded to same folder and then *with backup) edit /etc/yum.repos.d/*.repo files to have something like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.