Linux找不到动态链接的应用程序 [英] Linux Cant find dynamically linked applications
本文介绍了Linux找不到动态链接的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我交叉编译(由buildroot构建的工具链,所以它使用uclibc)没有静态的程序旗。它不会运行。
- / bin / sh:helloworld:not found
如果我用-static标志编译我的代码。它将通常运行并输出HelloWorld
这里发生了什么?
解决方案
我发现答案..我发现一个简单的错误,不把uClibc库放在我的文件系统上。
我知道有这些库,我可以运行非静态应用程序!
I have an embedded system running Linux Kernel 3.10 and Busybox.
If I cross compile (toolchain build by buildroot so its using uclibc) a program without the -static flag. It wont run.
-/bin/sh: helloworld: not found
If I compile my code with the -static flag. It will normally run and output HelloWorld
Whats going on here?
解决方案
I found the answers.. I mad a simple mistake of not putting the uClibc libraries on my filesystem.
I know have the libraries there and I can run non static applications!
这篇关于Linux找不到动态链接的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文