Anticipate “kernel too old” errors between 2.6.16 and 2.6.26 kernel versions

前端 未结 1 1621
春和景丽
春和景丽 2020-12-28 16:37

I build an application on a machine running Linux (Debian) with kernel 2.6.26-2-amd64 and I want to run this application on another machine running Linux (Suse) with kernel

相关标签:
1条回答
  • 2020-12-28 17:17

    One way you can determine the minimum kernel version for a given ELF file is to run file on it, like so:

    $ echo 'int main(){}' > test.c
    $ gcc -o test test.c
    $ file test
    test: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.38, not stripped
    

    The important part here is the "for GNU/Linux 2.6.38", which indicates the minimum kernel version.

    0 讨论(0)
提交回复
热议问题