AFAIK rpm is just querying the rpm database and looking for that package. 
It won't be able to tell if you had installed it using cpan, it wants a
rpm package.  At least that was how Red Hat did things in 7.x, I barely
used 8.0 so I'm not sure if that changed.  I doubt it though.  You can try
'rpm --showall | grep -i perl' to see what packages Red Hat has on it's
official distribution that have the word perl in it and see if they have
that specific package.

Cheers,

-- 
Trevor Lauder
Web: http://www.thelauders.net
E-Mail: [EMAIL PROTECTED]
Resume: http://www.thelauders.net/resume/
Gentoo Linux Powered

"Any intelligent fool can make things bigger and more complex... It takes
a touch of genius -- and a lot of courage to move in the opposite
direction."  -- Albert Einstein

Ian Bruseker said:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey everyone.  I have a question about how rpm and perl play together (if
> at
> all).
>
> I am trying to install the Samba 3.0 beta on a RedHat 8 machine.  I
> downloaded
> the tarball, built the RPM using the handy script and spec file included,
> and
> on attempting an "rpm -ivh" I get this:
>
> error: Failed dependencies:
>         perl(Net::LDAP::LDIF) is needed by samba-3.0.0beta1-1
>
> So, knowing just enough about perl to be dangerous, I fire up cpan and
> install
> Net::LDAP.  Alas, rpm doesn't seem to care.  Maybe I was thrown by the
> format
> of the message.  perl(something) seems to imply to me that it tried to ask
> perl if the desired module was installed, but that doesn't seem to be the
> case.  Am I wrong?  How smart is rpm?  Am I playing with fire trying to
> maintain perl modules with cpan and rpms with rpm?
>
> Incidentally, I've already found the solution if the answer turns out to
> be
> "use only rpm".  cpan2rpm (http://perl.arix.com/cpan2rpm/) goes off and
> crawls cpan for the module you ask for and builds the rpm for you.  Very
> cool
> (probably old hat to true perlmongers, but it's new to me).
>
> Anyway, that's my rambling question.  Is rpm actually asking perl if a
> module
> was installed and I did something wrong, or is it just messing with me
> (perhaps "trying to be helpful") with the perl() message?
>
> Ian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE+73RjSiY+RXI7JS4RAsSOAJ9RwDvEgn2wno1Yyu3hDVnFpMgPVQCgs0+2
> pzBShQLPRj8foFAJ14toPBQ=ZfMd
> -----END PGP SIGNATURE-----
>
>
>

Reply via email to