LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-16-2008, 10:53 PM   #1
giridhargopal.cj
LQ Newbie
 
Registered: Jun 2007
Location: Chennai
Distribution: CentOS 5.2
Posts: 8

Rep: Reputation: 0
Unhappy "Failed Dependency error" while installing RPM for "DateTime" perl modules


Hi All,

While executing the RPM created for the perl module [DateTime-Locale-0.4001.tar.gz] I'm encountering some dependency errors as shown below:

[root@dhcppc0 Perl]# rpm -ivh DateTime-Locale-0.4001-0.x86_64.rpm
error: Failed dependencies:
perl(LDML) is needed by DateTime-Locale-0.4001-0.x86_64
perl(MooseX::ClassAttribute) is needed by DateTime-Locale-0.4001-0.x86_64



Note:
This RPM has been created by me using the source tarball : DateTime-Locale-0.4001.tar.gz downloaded from the CPAN site.

I'm not able to find anything near to LDML so that I can get rid of the error:
perl(LDML) is needed by DateTime-Locale-0.4001-0.x86_64

Any suggestion on this is highly appreciated.

Thanks
Giri.

Last edited by giridhargopal.cj; 11-16-2008 at 11:35 PM. Reason: To enhance readability
 
Old 11-17-2008, 01:29 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,267

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
That's doing it the hard way. Try this:

1. login as root
2. perl -e shell -MCPAN
3. install Date::Time

should take care of dependencies automatically
 
Old 11-17-2008, 05:30 AM   #3
giridhargopal.cj
LQ Newbie
 
Registered: Jun 2007
Location: Chennai
Distribution: CentOS 5.2
Posts: 8

Original Poster
Rep: Reputation: 0
Deadlock while installing RPM of perl modules!!

Hi Chris,

A ton of thanks for your time in providing a solution.

Your solution makes life pretty easy.
But unfortunately my current project requires me to do all of the installations through RPM :-(

I somehow just managed to get an online copy of the DateTime-Locale RPM and it installed just without errors.

But I've trouble you because, I'm now caught in a deadlock kind of situation.

My requirement is to install the following [through RPMS]:
1. DateTime-Locale-0.4001
2. DateTime-TimeZone-0.77
3. DateTime-0.4301
4. Time-Local-1.18

I've got the RPMs for all of the above from : ftp://rpmfind.net/linux/dag/redhat/e...6_64/dag/RPMS/

Error message while installing DateTime-TimeZone-0.77:

[root@dhcppc0 ~]# rpm -ivh perl-DateTime-TimeZone-0.7701-1.el5.rf.noarch.rpm
warning: perl-DateTime-TimeZone-0.7701-1.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(DateTime) is needed by perl-DateTime-TimeZone-0.7701-1.el5.rf.noarch
perl(DateTime:: Duration) is needed by perl-DateTime-TimeZone-0.7701-1.el5.rf.noarch

Error message while installing DateTime-0.4302:

[root@dhcppc0 ~]# rpm -ivh perl-DateTime-0.4302-1.el5.rf.x86_64.rpm
warning: perl-DateTime-0.4302-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(DateTime::TimeZone) is needed by perl-DateTime-0.4302-1.el5.rf.x86_64
perl(DateTime::TimeZone) >= 0.59 is needed by perl-DateTime-0.4302-1.el5.rf.x86_64


DateTime-Timezone depends on DateTime and vice versa !!

Any suggestions to get me out of this mess would be of really a great help.

Thanks
Giri.

Last edited by giridhargopal.cj; 11-17-2008 at 05:32 AM. Reason: Remove emoticons being formed automatically in between texts.
 
Old 11-17-2008, 06:03 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,267

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Grrrr; I could ask why you want to do it this way???
Anyway, assuming you are using something like Redhat/Fedora, try the yum tool:

yum install perl-DateTime*

again, don't try to install one rpm at a time, you'll end up in dependency hell. Pkg tools are there to avoid this. Same with apt-get etc.
 
Old 11-17-2008, 06:57 AM   #5
giridhargopal.cj
LQ Newbie
 
Registered: Jun 2007
Location: Chennai
Distribution: CentOS 5.2
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Chris,
Iam ultimately trying to do an YUM install by creating a repository of the RPMS.

I get this message when I run:

[root@dhcppc0 /]# yum install perl-DateTime*
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...64&repo=extras error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: extras. Please verify its path and try again


It is because of this reason, that I am trying to create a repository of our own for the modules that is required for our project..

I understand that my requirements are somewhat weird..

Thanks for your support.. [If possible, let me know of any idea... I know that Iam expecting too much.. But I'm in that kind of situation.]
 
Old 11-18-2008, 12:33 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,267

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Well first I'd recommend checking whether you can contact that service at all ie was it a (temp) network issue?
Or, is that mirror name just plain wrong?
Alternately, if you want your own repository, you can start from the DVD you got originally.
There are certainly places to get it from, depending on your location. (maybe add that & your distro to your profile?).
I've never setup a repo as such though, you'll have to google it. People using RH and Centos do do that.
Good luck
 
Old 11-18-2008, 04:56 AM   #7
giridhargopal.cj
LQ Newbie
 
Registered: Jun 2007
Location: Chennai
Distribution: CentOS 5.2
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Chris,

Thanks for your suggestion. Yeah, it was the network issue that prevented the "yum install perl-Date*". But even this failed to resolve the dependency issue that I'm facing.

As you guessed, I'm working on a project in CentOS and Iam to :

-> Create a set of RPMs for each of the software modules / perl modules being used in the project.
It seems that this idea is to simplify the installation process at client sites.

Hence I'm now caught in this situation where my objective is create / invent /discover RPM packages for :

1. DateTime-TimeZone-0.77
2. DateTime-0.45

But the RPMs that I found for these are caught in a deadlock situation wherein each of it is dependent on the other to get installed.
 
Old 11-19-2008, 12:05 AM   #8
giridhargopal.cj
LQ Newbie
 
Registered: Jun 2007
Location: Chennai
Distribution: CentOS 5.2
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Chris,

Taking the lead from your suggestion to use package mgmt tool like YUM, instead of RPM, I used the RPM packages with me and created an YUM repository in my local machine.

Now, the deadlock due to failed dependency is resolved, when the packages are installed via YUM.

Thanks a lot,
Giri.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"dpkg -i ~oss-linux-4.0-1016_i386.deb"="Relinking the OSS kernel modules failed" bezdomny Linux - Software 2 07-26-2008 04:06 PM
Getting failed dependencies while installing the "nessus" package rpm on WRLinux manohare Linux - Software 0 10-09-2007 08:52 AM
"list dynamic dependency" of an executable using command other than "ldd" Amrita@3086 Solaris / OpenSolaris 3 04-04-2007 04:56 AM
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 09:30 PM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


All times are GMT -5. The time now is 03:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration