LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-19-2009, 02:11 AM   #1
gubbu
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Error installing Date::Calc Perl module on Redhat Enterprise linux


For some reason this is not getting installed (I checked with rpm -qa|grep perl) Can someone tell why based on this output

rpm -ivv perl-Date-Calc-5.3-9.src.rpm
D: ============== perl-Date-Calc-5.3-9.src.rpm
D: Expected size: 201520 = lead(96)+sigs(344)+pad(0)+data(201080)
D: Actual size: 201520
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
warning: perl-Date-Calc-5.3-9.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
D: added source package [0]
D: found 1 source and 0 binary packages
D: Expected size: 201520 = lead(96)+sigs(344)+pad(0)+data(201080)
D: Actual size: 201520
perl-Date-Calc-5.3-9
D: ========== Directories not explicitly included in package:
D: 0 /usr/src/redhat/SOURCES/
D: 1 /usr/src/redhat/SPECS/
D: ==========
D: fini 100664 1 ( 0, 0) 198831 /usr/src/redhat/SOURCES/Date-Calc-5.3.tar.gz;4b2c888b
D: fini 100664 1 ( 0, 0) 1878 /usr/src/redhat/SPECS/perl-Date-Calc.spec;4b2c888b
GZDIO: 25 reads, 201100 total bytes in 0.000895 secs
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
 
Old 12-19-2009, 03:46 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

# yum install perl-Date-Calc
.. will install the package.

The package ' perl-Date-Calc-5.3-9.src.rpm ' is source code.

Like all other SRC.RPMS.
.....

Last edited by knudfl; 12-19-2009 at 03:49 AM.
 
Old 12-19-2009, 02:33 PM   #3
gubbu
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 12-19-2009, 03:27 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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).


Cheers,
Tink
 
Old 12-20-2009, 04:50 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.. Or use the Redhat source
http://ftp.redhat.com/pub/redhat/lin....2.2.1.src.rpm
> > perl-Date-Calc-5.4-1.2.2.1.src.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

Setting up the rbmbuild environment in /home/"username"/ :
http://www.linuxquestions.org/questi...5.1-766486/#13
.....
 
Old 12-20-2009, 06:04 AM   #6
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Download this i386 rpm or this x86_64 version, it is exactly the same as one from RHEL's repository. Use
Quote:
rpm -ivh perl-Date-Calc-5.4-1.2.2.1.i386.rpm
to install it.

Or, if you prefer, find the same rpm on Red Hat's repositories.

If rpm requests additional packages, you wiil need to find and download those too. Just go to the RHN repositories and download what you need.

Last edited by DrLove73; 12-20-2009 at 06:10 AM.
 
Old 12-20-2009, 07:12 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Are you sure you haven't got yum? It's part of the std RHEL install.
 
Old 12-21-2009, 02:00 AM   #8
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
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.
 
Old 12-22-2009, 01:43 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Not paying Redhat ? : Then it's a rather useless OS.

But for perl modules 'cpan' is still at hand ..

1) su
2) cpan
3) cpan > install Date::Calc
.....

Last edited by knudfl; 12-22-2009 at 01:44 AM.
 
Old 12-24-2009, 03:59 PM   #10
gubbu
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Tried several things

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
 
Old 12-25-2009, 12:52 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Perl modules el5

No problem, they are usually easy to install manually.

Just get them all from CPAN http://search.cpan.org/

Date::Calc , Bit::Vector , Carp::Clan , Test::Exception,
Sub::Uplevel , Storable .

Example, 'Storable' :
cd Storable-2.21/ , perl Makefile.PL , make , # make install .

Or download the rpm packages, a list is attached ..
.....
Attached Files
File Type: txt el5-perl-modules.txt (3.0 KB, 32 views)
 
Old 12-27-2009, 11:41 PM   #12
gubbu
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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 ?
 
Old 12-27-2009, 11:46 PM   #13
gubbu
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 12-28-2009, 02:33 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

.....
 
Old 12-29-2009, 02:12 AM   #15
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by gubbu View Post
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:

Code:
[plnet-os]
name=Spec CentOS 5 - os - $releasever - $basearch 
baseurl=file:///media/disk/repository/centos.plnet.rs/mrepo/plnet-centos5-i386/RPMS.os/
gpgcheck=0
enabled=1
for each repository, and than run your yum commands.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error installing MySQL perl module Metropolis Linux - Software 3 10-22-2009 09:49 AM
Journal error on an EXT3 filesystem while installing perl module garyg007 Slackware 2 12-27-2008 02:53 PM
Once again problem installing REDHAT Linux 5 enterprise edition hassandit Red Hat 1 11-24-2008 02:06 AM
Installing RedHat Enterprise Linux 4 from a single DVD. rexjenny Red Hat 2 07-07-2006 08:20 AM
perl - Can't locate Date/Calc.pm Harry Seldon Programming 5 04-10-2006 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration