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

前端 未结 2 714
日久生厌
日久生厌 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.

    0 讨论(0)
  • 2020-11-30 15:09

    Check that the file has been set to executable permissions with ls -l if it hasn't change with chmod +x /storage/fingi/usr/lib/autossh/autossh

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