> -----Original Message-----
> From: KeN ClarK [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 15, 2001 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: ugh. @INC
> 
> 
> Recently I've had problems w/all of my scripts (and attempts) 
> failing with 
> a "Can't locate _module.pm_name_ in @INC (@INC contains: 
> /usr/lib... ... 
> ....) at nameofscript.pl line #.
> 
> In example I am trying to make an html page of a directory that i've 
> segregated certain mp3's. I am trying to use the MPEG::MP3Info module 
> which I successfully grabbed from CPAN.
> 
> Please point me on the right track.

Not sure what you mean by "grabbed from CPAN". You have to install
modules, typically using the steps:

   perl Makefile.PL
   make
   make test
   make install

You can also do the above with the CPAN module. You should *not* just
copy files around. Always use the proper install process.

The @INC is essentially "burned in" to your perl executable. When you
install a module, the perl Makefile.PL step uses the locations in your
perl executable to decide where the module should be installed. When
you later use the module, it will be in the right place in @INC.

So:

1. Make sure you have installed the module properly.

2. Make sure you are using the same perl binary in your script
that uses the module as you did when you installed the module.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to