Closed Thread Icon

Topic awaiting preservation: Can't locate File/ in @INC (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic awaiting preservation: Can&amp;#039;t locate File/ in @INC (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Can&#039;t locate File/ in @INC <span class="small">(Page 1 of 1)</span>\

Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 07-21-2004 16:58

I have a PERL script that uses the following:

use File::List;

I went to CPAN and located and copied it to my C:/Perl/lib C:/Perl/site/lib directories but I still receive the following error message every time I execute the script....:

Can't locate File/ in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .
) at line 3.
BEGIN failed--compilation aborted at line 3.

What's the deal?

Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-21-2004 17:23

You will need to install it. It is normally a bigger operation that just moving a .pm file because often there are c libraries that must be installed as well. You might be able to find an install with the binaries, you would have to move them as well. I am not 100% sure on the specifics.

If you are on Windows and using ActivePerl I believe they have a program that is a command line tool for downloading modules. You should check your start>programs>activestate | activeperl folder and see if it is located there. If not check you perl folder. I think the program is called something like PPM (perl package manager).

I haven't used perl on windows in years so I can't be all that big a help, you might have to do some looking. If you have to build the whole module yourself you will need a C compiler. I found a tutorial here:

Dan @ Code Town

Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 07-22-2004 04:45

The program WarMage refers to is ppm.

You can download the package to your hard drive, cd to the directory where you stored it and run ppm <package-name> from the command line and it should install to the correct directories.

[edit] I forgot to say that you can also have ppm find, download and install the package so that you don't have to download it manually. However, sometimes ppm has problems finding packages so you may want to download it by hand and then run ppm to install it.

It is also possible to install packages by hand, but this is not a procedure for any but the most hardened fanatics.

-- not necessarily stoned... just beautiful.

(Edited by hyperbole on 07-22-2004 04:49)

Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-22-2004 07:28

As long as the module you are trying to install is straight perl the location you want to put the file is


(though using the package manager is still the better method)

.:[ Never resist a perfect moment ]:.

(Edited by bitdamaged on 07-22-2004 07:37)

« BackwardsOnwards »

Show Forum Drop Down Menu