For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2008 > question on @INC









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 question on @INC
Anjan Purkayastha

2008-01-15, 7:02 pm

i recently tried to run a module PGPLOT.pm within the PDL package.
at the PDL command line i typed "use PGPLOT"
i get the following error message:
Can't locate PGPLOT.pm in @INC (@INC contains:
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6 /Library/Perl
/Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at (eval 44) line
4, <STDIN> line 1.
BEGIN failed--compilation aborted at (eval 44) line 4, <STDIN> line 1.

however when there is a PGPLOT.pm module in
/Library/Perl/5.8.6/darwin-thread-multi-2level/PDL/Graphics/ and also in
/Users/anjan/.cpan/build/PDL-2.4.3/Graphics/PGPLOT/

Does this mean that I will have to add extra paths to the @INC variable?

Appreciate your help,
Anjan

--
ANJAN PURKAYASTHA, PhD.
Senior Computational Biologist
==========================

1101 King Street, Suite 310,
Alexandria, VA 22314.
703.518.8040 (office)
703.740.6939 (mobile)

email:
anjan@vbi.vt.edu;
anjan.purkayastha@gmail.com

http://www.vbi.vt.edu

==========================

Yitzle

2008-01-15, 7:02 pm

How did you install the module?
Try adding this line before the use PGPLOT:
use lib '/Library/Perl/5.8.6/darwin-thread-multi-2level/PDL/Graphics/';
Sponsored Links







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

Copyright 2008 codecomments.com