Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Perl Modules Locally !! Can't locate modulename.pm in @INC 1

Status
Not open for further replies.

perlbie007

Programmer
Jan 1, 2005
3
US

I'm a new bie in CGI esp. in graph modules.I installed some GD::Graph modules locally in linux.

But when I run a sample program it give me an error that :

Can't locate modulename.pm in @INC

I tried using export perl5lib=path name

but the path does not appear when I use

perl -V

Could anyone help me figure out what the problem is.What should I do inorder to make this run.

Thanks in advance.


 
Have you looked at the use lib directive. This is supplemental to @INC

Happy New Year
--Paul

cigless ...
 
Yes I even tried use lib but eventhough the directory contains the perlmodule,it states it cant find it.

I started installing another module locally , but i stopped the installation with the makefile.PL and did'nt run make install and removed the extracted files.But even when I try to install a new module locally and use make file the previous one which is incomplete comes and i'm unable to install any new module .
Any Suggestions ?????????
 
are you using cpan to install modules?

--Paul

cigless ...
 
Thank you very much paul !!

I had the problem fixed.I used export lib and use lib with a directory that contains GD.Then I go it running.

I just downloaded the modules from CPAN in my local directory and installed it.Is there any way to download it directly from CPAN from linux command prompt !!
 
there's a cpan shell available from the console
Code:
prompt>perl -MCPAN -e shell
cpan>[b]o conf init[/b]

Have fun


cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top