LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "Failed Dependency error" while installing RPM for "DateTime" perl modules (http://www.linuxquestions.org/questions/linux-newbie-8/failed-dependency-error-while-installing-rpm-for-datetime-perl-modules-683932/)

giridhargopal.cj 11-16-2008 10:53 PM

"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.

chrism01 11-17-2008 01:29 AM

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

giridhargopal.cj 11-17-2008 05:30 AM

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.

chrism01 11-17-2008 06:03 AM

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.

giridhargopal.cj 11-17-2008 06:57 AM

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.]

chrism01 11-18-2008 12:33 AM

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
:)

giridhargopal.cj 11-18-2008 04:56 AM

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.

giridhargopal.cj 11-19-2008 12:05 AM

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.


All times are GMT -5. The time now is 09:09 PM.