Reputation: 91
In Windows, Perl modules are installed in C:/Perl64/site/lib/
. What is the corresponding location in an Ubuntu system?
Upvotes: 5
Views: 22307
Reputation: 385496
To find out where a module is installed, you can use:
perl -E'use Some::Module; say $INC{"Some/Module.pm"};'
You can find out where perl
will look (@INC
) using
perl -V # Uppercase "V"
or
perl -E'say for @INC'
I don't know why you'd want to know, so I'm not quite sure what you are actually looking for. A more detailed question could lead to a better answer.
Upvotes: 15
Reputation: 132720
perldoc
can tell you where any particular module is installed with its -l
(lowercase ell) switch:
% perldoc -l Module::Name
Upvotes: 4
Reputation: 126722
The location of the Perl libraries depends entirely on the installation. The folders that Perl searches to load a library are stored in the @INC
array, which you can display using
perl -E "say for @INC"
On my installation this outputs
C:/strawberry/perl/site/lib/MSWin32-x86-multi-thread
C:/strawberry/perl/site/lib
C:/strawberry/perl/vendor/lib
C:/strawberry/perl/lib
.
Upvotes: 7
Reputation: 351
You'll find them in /usr/lib/perl/{VERSION}/
as well as /usr/lib64/perl/{VERSION}/
.
{VERSION}
corresponding to the version of Perl. You can get it with perl --version
.
Upvotes: 1