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

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

    $ export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
    

    This works for me. It's basically the same thing as:

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

    You can add it to the ~/.bashrc file so you don't have to type it everytime you open the terminal.

提交回复
热议问题