How to solve “error while loading shared libraries” when trying to run an arm binary with qemu-arm?

后端 未结 6 719
-上瘾入骨i
-上瘾入骨i 2021-02-04 08:40

I\'m running Linux Mint 14 with qemu, qemu-user, and the gnueabi toolchain installed. I compiled test.c with arm-linux-gnueabi-gcc test.c -o test.

When I tr

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 09:29

    you can run the example by providing a path to the arm-linux-gnueabi shared libs using the -L flag.

    qemu-arm -L /usr/arm-linux-gnueabi/
    

    also make sure the LD_LIBRARY_PATH is not set.

    unset LD_LIBRARY_PATH
    

提交回复
热议问题