How to run binary file in Linux

前端 未结 11 1035
执念已碎
执念已碎 2021-02-01 18:15

I have a file called commanKT and want to run it in a Linux terminal. Can someone help by giving the command to run this file? I tried ./commonRT but I

11条回答
  •  遥遥无期
    2021-02-01 18:37

    It is possible that you compiled your binary with incompatible architecture settings on your build host vs. your execution host. Can you please have a look at the enabled target settings via

    g++ {all-your-build-flags-here} -Q -v --help=target
    

    on your build host? In particular, the COLLECT_GCC_OPTIONS variable may give you valuable debug info. Then have a look at the CPU capabilities on your execution host via

    cat /proc/cpuinfo | grep -m1 flags
    

    Look out for mismatches such as -msse4.2 [enabled] on your build host but a missing sse4_2 flag in the CPU capabilities.

    If that doesn't help, please provide the output of ldd commonKT on both build and execution host.

提交回复
热议问题