Home > Archive > PERL Beginners > April 2004 > use MD5
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]
|
|
| DBSMITH@OhioHealth.com 2004-04-06, 12:37 pm |
| All,
can anyone advise?
I have MD5 config'ed and compiled and it is in my PATH variable. Thank
you!
#> perl -de 1
Loading DB routines from perl5db.pl version 1.23
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(-e:1): 1
DB<1> use MD5;
Can't locate MD5.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.3/aix
/usr/
local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/aix
/usr/local/lib/pe
rl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .) at (eval
5)[/usr/local/lib
/perl5/5.8.3/perl5db.pl:619] line 2.
main::BEGIN() called at MD5.pm line 2
eval {...} called at MD5.pm line 2
eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D =
$^D |
$DB::db_stop;
use MD5;;
;' called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 619
DB::eval called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 3320
DB::DB called at -e line 1
BEGIN failed--compilation aborted at (eval
5)[/usr/local/lib/perl5/5.8.3/perl5db
..pl:619] line 2.
eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D =
$^D |
$DB::db_stop;
use MD5;;
;' called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 619
DB::eval called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 3320
DB::DB called at -e line 1
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
| |
| Wiggins D Anconia 2004-04-06, 12:37 pm |
| >
> All,
>
> can anyone advise?
> I have MD5 config'ed and compiled and it is in my PATH variable. Thank
> you!
>
In your "PATH" variable? Should that be your "PERL5LIB" variable? By
your statement I assume it is not in the default @INC compiled into your
perl?
http://danconia.org
> #> perl -de 1
>
> Loading DB routines from perl5db.pl version 1.23
> Editor support available.
>
> Enter h or `h h' for help, or `man perldebug' for more help.
>
> main::(-e:1): 1
> DB<1> use MD5;
> Can't locate MD5.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.3/aix
> /usr/
> local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/aix
> /usr/local/lib/pe
> rl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .) at (eval
> 5)[/usr/local/lib
> /perl5/5.8.3/perl5db.pl:619] line 2.
> main::BEGIN() called at MD5.pm line 2
> eval {...} called at MD5.pm line 2
> eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main;
$^D =
> $^D |
> $DB::db_stop;
> use MD5;;
>
> ;' called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 619
> DB::eval called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 3320
> DB::DB called at -e line 1
> BEGIN failed--compilation aborted at (eval
> 5)[/usr/local/lib/perl5/5.8.3/perl5db
> .pl:619] line 2.
> eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main;
$^D =
> $^D |
> $DB::db_stop;
> use MD5;;
>
> ;' called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 619
> DB::eval called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 3320
> DB::DB called at -e line 1
>
> Derek B. Smith
> OhioHealth IT
> UNIX / TSM / EDM Teams
>
>
>
| |
| DBSMITH@OhioHealth.com 2004-04-06, 12:37 pm |
| so does that mean a recompile of perl ? Can't I just edit that array to
include this path?
that is right @INC is not correct. What is an example of you PERL5LIB
variable?
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
"Wiggins d Anconia" <wiggins@danconia.org>
04/06/2004 11:36 AM
To: DBSMITH@OhioHealth.com, beginners@perl.org
cc:
Subject: Re: use MD5
>
> All,
>
> can anyone advise?
> I have MD5 config'ed and compiled and it is in my PATH variable. Thank
> you!
>
In your "PATH" variable? Should that be your "PERL5LIB" variable? By
your statement I assume it is not in the default @INC compiled into your
perl?
http://danconia.org
> #> perl -de 1
>
> Loading DB routines from perl5db.pl version 1.23
> Editor support available.
>
> Enter h or `h h' for help, or `man perldebug' for more help.
>
> main::(-e:1): 1
> DB<1> use MD5;
> Can't locate MD5.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.3/aix
> /usr/
> local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/aix
> /usr/local/lib/pe
> rl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl .) at (eval
> 5)[/usr/local/lib
> /perl5/5.8.3/perl5db.pl:619] line 2.
> main::BEGIN() called at MD5.pm line 2
> eval {...} called at MD5.pm line 2
> eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main;
$^D =
> $^D |
> $DB::db_stop;
> use MD5;;
>
> ;' called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 619
> DB::eval called at /usr/local/lib/perl5/5.8.3/perl5db.pl line
3320
> DB::DB called at -e line 1
> BEGIN failed--compilation aborted at (eval
> 5)[/usr/local/lib/perl5/5.8.3/perl5db
> .pl:619] line 2.
> eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main;
$^D =
> $^D |
> $DB::db_stop;
> use MD5;;
>
> ;' called at /usr/local/lib/perl5/5.8.3/perl5db.pl line 619
> DB::eval called at /usr/local/lib/perl5/5.8.3/perl5db.pl line
3320
> DB::DB called at -e line 1
>
> Derek B. Smith
> OhioHealth IT
> UNIX / TSM / EDM Teams
>
>
>
| |
| Bob Showalter 2004-04-06, 1:31 pm |
| DBSMITH@OhioHealth.com wrote:
> All,
>
> can anyone advise?
> I have MD5 config'ed and compiled and it is in my PATH variable.
How did you install MD5? If you installed it using the standard method, it
should be in the proper location. PATH is irrelevant to Perl module
searches.
Also, you should use Digest::MD5, since MD5 is deprecated?
Read the following FAQ articles:
perldoc -q 'How do I install a module from CPAN?'
perldoc -q 'How do I keep my own module/library directory?'
As well as
perldoc CPAN
HTH
| |
| DBSMITH@OhioHealth.com 2004-04-06, 1:32 pm |
| I installed it via
perl Makefile.PL
make
make test
make install.
I did use Digest::MD5-2.33
ok thanks anyway!
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
Bob Showalter <Bob_Showalter@taylorwhite.com>
04/06/2004 11:49 AM
To: "'DBSMITH@OhioHealth.com'" <DBSMITH@OhioHealth.com>, beginners@perl.org
cc:
Subject: RE: use MD5
DBSMITH@OhioHealth.com wrote:
> All,
>
> can anyone advise?
> I have MD5 config'ed and compiled and it is in my PATH variable.
How did you install MD5? If you installed it using the standard method, it
should be in the proper location. PATH is irrelevant to Perl module
searches.
Also, you should use Digest::MD5, since MD5 is deprecated?
Read the following FAQ articles:
perldoc -q 'How do I install a module from CPAN?'
perldoc -q 'How do I keep my own module/library directory?'
As well as
perldoc CPAN
HTH
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>
| |
| Wiggins D Anconia 2004-04-06, 1:32 pm |
| Please bottom post....
>
> so does that mean a recompile of perl ? Can't I just edit that array to
> include this path?
> that is right @INC is not correct. What is an example of you PERL5LIB
> variable?
>
No recompile needed. You have a number of ways to update @INC, none of
which involves (to my knowledge) PATH. You can set the PERL5LIB
environment variable, in bash I use,
export PERL5LIB=/var/domains/danconia/lib:/var/domains/lib
Alternatively for a more permanant solution you can set it inside of a
script with,
use lib qw( /var/domains/danconia/lib /var/domains/lib );
Or various wranglings using FindBin depending on your script location
and whether it is relative to the libs,
use FindBin;
use lib "$FindBin::Bin/../../lib";
use lib "$FindBin::Bin/../lib";
perldoc FindBin
HTH,
http://danconia.org
| |
| DBSMITH@OhioHealth.com 2004-04-06, 2:31 pm |
| this was done! thanks!
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
|
|
|
|
|