raspberry pi - How to resolve missing libc.so.6 dependency on minimal Linux guest OS in RPi4 hypervisor? - Stack Overflow

I'm working on a project which involves using a RPi4B in order to build an open source hypervisor

I'm working on a project which involves using a RPi4B in order to build an open source hypervisor with two guest OS: Linux and FreeRTOS. Now all that build process is complete, and I'm trying to execute a simple C program inside the Linux guest OS. The Linux inside the hypervisor comes with minimal packages, and is a bare Linux kernel running. While trying to execute a .c file, I have cross-compiled according to the aarch64 architecture using the command aarch64-linux-gnu-gcc -o ipc_reader ipc_reader.c and transferred the binary file inside the Linux file system using scp. However its not being executed, and when I checked the dependencies (or packages) required to run the binary using the ldd ipc_reader command, here's what I found:

# ldd ipc_reader
checking sub-depends for 'not found'
        libc.so.6 => not found (0x00000000)
        /lib/ld-linux-aarch64.so.1 => /lib/ld-linux-aarch64.so.1 (0x00000000)

How can I resolve these missing dependencies on a minimal Linux guest OS without a package manager?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744987912a4604723.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信