查找用 Mono 编写的程序的应用程序依赖关系
我在我的 Ubuntu 10.10 机器 (Meverick) 上开发了一个中等大小的 Mono 工具,用 Mono 2.6 编译。程序运行良好,没有任何问题。然后我把这个工具给了一位仍在使用 Ubuntu 10.04 (Lucid) 和 Mono 2.4 的同事进行测试。他无法运行该程序。我们使用 badgerports 的脚本将他机器上的 Mono 升级到 2.6,但没有成功。它运行但立即崩溃并出现 SEGSIGV 错误。我怀疑这是因为我们在他的机器上缺少 lib 包。但我该如何去找出他运行程序需要哪些依赖呢?我知道有一个部分可以在创建 .deb 安装程序时放置所需的库。但是我应该包含哪些库和哪些版本来进行检查?
I developed a fairly mid-sized Mono tool on my Ubuntu 10.10 machine (Meverick) compiled with Mono 2.6. The program runs fine without any problem. Then I gave the tool to one of my colleagues for testing who is still using Ubuntu 10.04 (Lucid) and Mono 2.4. He is not able to run the program. We upgraded Mono on his machine to 2.6 using badgerports' script but no luck. It runs but crashes immediately with SEGSIGV error. I doubt it is because we are missing a lib package on his machine. But how should I go and find out what dependencies he needs to run the program? I'm aware that there is a section where you can put what libs you need while creating a .deb installer. But what libs and what versions should I include for checking?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许 getlibs 是你的答案:
http://ubuntuforums.org/showthread.php?t=474790
或更简单的方法在这里:
在这里添加http,因为我无法发布第二个链接
linux.byexamples.com/archives/409/how-to-list-shared-library-dependency-used-by-an-application/
基本上在程序上使用 ldd -v 来查看需要什么。
第一个解决方案安装您所需的东西。
第二个为您提供了所需内容的列表。
w
Maybe getlibs is your answer:
http://ubuntuforums.org/showthread.php?t=474790
or a simpler way is here:
add http here because I can't post second link
linux.byexamples.com/archives/409/how-to-list-shared-library-dependencies-used-by-an-application/
basically use ldd -v on your program to see what's required.
The first solution installs the stuff required for you.
The second gives you a list of what's required.
w
对于较新版本的 Mono AsmSpy 可以解决问题。
与当前稳定版(Mono 4.4.2)配合得很好 - 我从 AppVeyor 下载了 预构建版本< /a>.
For newer versions of Mono AsmSpy does the trick.
Worked just fine with current stable (Mono 4.4.2) - I downloaded the prebuilt version from AppVeyor.