“No such file or directory” error when executing a binary

前端 未结 8 818
走了就别回头了
走了就别回头了 2020-11-28 01:15

I was installing a binary Linux application on Ubuntu 9.10 x86_64. The app shipped with an old version of gzip (1.2.4), that was compiled for a much older kernel:

         


        
8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 01:51

    It is possible that the executable is statically linked and that is why ldd gzip does not see any links - because it isn't. I don't know much about things that far back so I don't know if there would be incompatibilities if libraries are linked in statically. I might expect there to be.

    I know it's the most obvious thing going and I'm sure you've done it, but chmod +x ./gzip, yes? No such file or directory is a classic symptom of that not being done, that's why I mention it.

提交回复
热议问题