一些命令打印:
$ ./omnetpp
zsh: no such file or directory: ./omnetpp
$ file ./omnetpp
./omnetpp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=b621fbc20e80d7ac375ece11a5775fc6686b71c7, with debug_info, not stripped
$ ldd omnetpp
linux-vdso.so.1 (0x00007ffc8cd2b000)
libpthread.so.0 => /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libpthread.so.0 (0x00007f84d65ea000)
libdl.so.2 => /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libdl.so.2 (0x00007f84d65e5000)
libc.so.6 => /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libc.so.6 (0x00007f84d642f000)
/lib64/ld-linux-x86-64.so.2 => /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007f84d660d000)
$ uname -a
Linux nixos 4.19.87 #1-NixOS SMP Sun Dec 1 08:17:47 UTC 2019 x86_64 GNU/Linux
上面的消息似乎我拥有所有必要的库。
更多内容请参见要旨完整打印readelf -a
如果我尝试使用 lldb 运行这个 elf 文件,它会返回error: process launch failed: 'A' packet returned an error: 8
。
现在,我想知道是否有办法找到我想念的东西。
编辑:可以找到构建脚本和过程这里。