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

后端 未结 6 717
-上瘾入骨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:10

    I solved the problem by copying the following libraries into /lib but I believe there should be a way better solution rather than this nasty solution I invented!

    sudo cp  /usr/arm-linux-gnueabi/lib/ld-linux.so.3 /lib
    sudo cp /usr/arm-linux-gnueabi/lib/libgcc_s.so.1 /lib
    sudo cp /usr/arm-linux-gnueabi/lib/libc.so.6 /lib
    

    Please let me know if there are other better solutions as I am interested to know.

提交回复
热议问题