what does “-sh: executable_path:not found” mean

前端 未结 2 724
日久生厌
日久生厌 2020-11-30 14:53

i am trying to run an executable in linux shell ( OpenELEC on raspberry pi )

OpenELEC:~ # /storage/fingi/usr/lib/autossh/autossh
-sh: /storage/fingi/usr/lib/         


        
2条回答
  •  没有蜡笔的小新
    2020-11-30 15:09

    What does the "not found" in this case mean ?

    This usually means that the executable cannot find one or more (shared) libraries to satisfy its external symbols.
    This usually happens when no libraries are stored in the initramfs, or there is a shared library missing that the executable needs.
    This can also happen if the executable is built with a C library that is incompatible with the runtime library, e.g. uClibc versus glibc/eglibc.

    strings executable | less is the quickest way to see the required libraries and external symbols that the executable requires.
    Or
    Recompile your program and use static linking by specifying the -static option.

提交回复
热议问题