the_apprentice has asked for the wisdom of the Perl Monks concerning the following question:
The module was installed in "/usr/local/lib64/perl5". Here a snippet of a testsudo cpan -i Digest::SHA1
First I got this error: Can't locate Digest/SHA1.pm in @INC.... I solved adding a new env variable export PERL5LIB="/usr/local/lib64/perl5"#!/bin/env perl use warnings; use strict; use Digest::SHA1 "sha1_hex"; my $tmp = sha1_hex("hello"); print "SHA1 = " . $tmp . "\n";
Problem solved?? No... Here a new problem: Segmentation Fault What is wrong now? (I'm sorry for my bad english :D)$ perl -e 'print "$_\n" foreach @INC' /usr/local/lib64/perl5 /usr/local/lib/perl5/site_perl/5.18.1/x86_64-linux /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/x86_64-linux /usr/local/lib/perl5/5.18.1 .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SegFault after installed module
by Athanasius (Archbishop) on Dec 02, 2013 at 15:38 UTC | |
|
Re: SegFault after installed module
by karlgoethebier (Abbot) on Dec 02, 2013 at 15:44 UTC | |
|
Re: SegFault after installed module
by the_apprentice (Novice) on Dec 02, 2013 at 17:30 UTC | |
by karlgoethebier (Abbot) on Dec 02, 2013 at 19:48 UTC | |
by the_apprentice (Novice) on Dec 02, 2013 at 22:50 UTC |