pra*_*wat 4 ubuntu perl perl-module
在Windows中,安装了Perl模块C:/Perl64/site/lib/
.Ubuntu系统中的相应位置是什么?
ike*_*ami 14
要找出模块的安装位置,您可以使用:
perl -E'use Some::Module; say $INC{"Some/Module.pm"};'
Run Code Online (Sandbox Code Playgroud)
你可以找到使用的perl
外观(@INC
)
perl -V # Uppercase "V"
Run Code Online (Sandbox Code Playgroud)
要么
perl -E'say for @INC'
Run Code Online (Sandbox Code Playgroud)
我不知道你为什么想知道,所以我不太确定你到底在想什么.更详细的问题可以得到更好的答案.
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"
Run Code Online (Sandbox Code Playgroud)
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
.
Run Code Online (Sandbox Code Playgroud)
小智 1
/usr/lib/perl/{VERSION}/
您会在以及 中找到它们/usr/lib64/perl/{VERSION}/
。
{VERSION}
对应Perl的版本。您可以通过 获取它perl --version
。
归档时间: |
|
查看次数: |
17986 次 |
最近记录: |