开发者

Is there a way to list all required dynamic libraries by perl?

开发者 https://www.devze.com 2023-03-23 23:47 出处:网络
As we know many perl modules depends on some dynamic libraries to function,loaded by DynLoader(I don\'t know if there\'开发者_如何学Gos any other way to load .so though).

As we know many perl modules depends on some dynamic libraries to function,loaded by DynLoader(I don't know if there'开发者_如何学Gos any other way to load .so though).

./perl_programe

Is there a way to list all required dynamic libraries for a specific perl programe?


Try this script:

#! /usr/bin/perl
do shift;
print "$_\n" for @DynaLoader::dl_shared_objects;

It takes the script to check as first (and only) argument. e.g. ./dyna perl_programe

0

精彩评论

暂无评论...
验证码 换一张
取 消