For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2005 > Q: Digest::SHA1 module cannot be loaded









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Q: Digest::SHA1 module cannot be loaded
Gros Loup

2005-02-08, 3:56 pm

Hello

As part of SpamAssassin re-compilation, I need Digest::SHA1 module
available inside PERL.
I could find it on CPAN and I put it on an appropriate directory
(Digest/SHA1.pm under appropriate sub-directory of /usr/lib/perl5).
But I then get an error "unable to load object used by thus module" when
trying to load this module. This error is raised when executing the
line use Digest::SHA1.

Any hint ?

-> I use Fedora Core 3/Perl is 5.8.5/Spam Assassin is 3.0.2.

Gros Loup from Grenoble, France
Sisyphus

2005-02-08, 8:56 pm

Gros Loup wrote:
> Hello
>
> As part of SpamAssassin re-compilation, I need Digest::SHA1 module
> available inside PERL.
> I could find it on CPAN and I put it on an appropriate directory
> (Digest/SHA1.pm under appropriate sub-directory of /usr/lib/perl5).
> But I then get an error "unable to load object used by thus module" when
> trying to load this module. This error is raised when executing the
> line use Digest::SHA1.
>
> Any hint ?


The module needs to be compiled - simply copying the '.pm' file to the
appropriate location is insufficient. You need to unpack the tarball
then run 'perl Makefile.PL', 'make test', and 'make install'. See
'perldoc perlmodinstall' for details.

Cheers,
Rob

--
To reply by email u have to take out the u in kalinaubears.

Andreas Höhmann

2005-02-09, 8:55 am

Gros Loup schrieb:
> Hello
>
> As part of SpamAssassin re-compilation, I need Digest::SHA1 module
> available inside PERL.
> I could find it on CPAN and I put it on an appropriate directory
> (Digest/SHA1.pm under appropriate sub-directory of /usr/lib/perl5).
> But I then get an error "unable to load object used by thus module" when
> trying to load this module. This error is raised when executing the
> line use Digest::SHA1.
>
> Any hint ?


cpan install Digest::SHA1

Should finished without any Error :)

>
> -> I use Fedora Core 3/Perl is 5.8.5/Spam Assassin is 3.0.2.
>
> Gros Loup from Grenoble, France

Gros Loup

2005-02-09, 3:56 pm

Sisyphus wrote:
> Gros Loup wrote:
>
>
>
> The module needs to be compiled - simply copying the '.pm' file to the
> appropriate location is insufficient. You need to unpack the tarball
> then run 'perl Makefile.PL', 'make test', and 'make install'. See
> 'perldoc perlmodinstall' for details.
>
> Cheers,
> Rob
>



Yes but it is not a tarball. When you go to CPAN site, you've got the
..pm file. Where can you find the tarball ?
Hmmm it looks like like a RTFM question, but I went around the links
provided with SHA1 CPAN page and could not find any tarball !

Sébastien
Sisyphus

2005-02-09, 3:56 pm

Gros Loup wrote:
> Sisyphus wrote:
>
>
>
> Yes but it is not a tarball. When you go to CPAN site, you've got the
> .pm file. Where can you find the tarball ?
> Hmmm it looks like like a RTFM question, but I went around the links
> provided with SHA1 CPAN page and could not find any tarball !
>
> Sébastien


I usually go to:
http://search.cpan.org/ and do a "Search" for the module I'm after (in
this case, Digest::SHA1). Then click on the link to the module - which
takes you to a page that contains a "Download" link - which provides you
with the source tarball.

(I'd give you actual links but I can't connect to CPAN at the moment.)

The procedure is a little simpler if you have CPAN.pm set up - as
Andreas suggested.

Cheers,
Rob

--
To reply by email u have to take out the u in kalinaubears.

Gros Loup

2005-02-10, 3:56 pm

Sisyphus wrote:
> Gros Loup wrote:
>
>
>
> I usually go to:
> http://search.cpan.org/ and do a "Search" for the module I'm after (in
> this case, Digest::SHA1). Then click on the link to the module - which
> takes you to a page that contains a "Download" link - which provides you
> with the source tarball.
>
> (I'd give you actual links but I can't connect to CPAN at the moment.)
>
> The procedure is a little simpler if you have CPAN.pm set up - as
> Andreas suggested.
>
> Cheers,
> Rob
>


I think this procedure is good when you have an internet connection. I
have RTC access (30kbps) so it is not that easy to use live programs to
download modules on the fly. Is there a way to download a module first,
THEN to install it ?

Gros Loup from Grenoble, France
Arne Sommer

2005-02-10, 3:56 pm

>> I usually go to:
>
> I think this procedure is good when you have an internet connection. I
> have RTC access (30kbps) so it is not that easy to use live programs to
> download modules on the fly. Is there a way to download a module first,
> THEN to install it ?


What is wrong with Rob's first tip?

The actual URL, in case uou do not want to search CPAN, is:
http://search.cpan.org/CPAN/authors...HA1-2.10.tar.gz

--Arne Sommer...

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com