有没有办法通过 perl 列出所有必需的动态库? [英] Is there a way to list all required dynamic libraries by perl?

查看:66
本文介绍了有没有办法通过 perl 列出所有必需的动态库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如我们所知,许多 perl 模块依赖于一些动态库来运行,由 DynLoader 加载(我不知道是否还有其他方法可以加载 .so).

As we know many perl modules depends on some dynamic libraries to function,loaded by DynLoader(I don't know if there's any other way to load .so though).

./perl_programe

有没有办法列出特定 perl 程序所需的所有动态库?

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

推荐答案

试试这个脚本:

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

它将脚本作为第一个(也是唯一的)参数进行检查.例如./dyna perl_programe

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

这篇关于有没有办法通过 perl 列出所有必需的动态库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆