busybox in embedded linux shows “applet not found”

后端 未结 2 507
感情败类
感情败类 2021-02-09 18:37

I compiled busybox myself,and I put it in our embedded linux. But I have some questions.

Question 1:When I try to use some command such as gzip,it prints \"gzip: applet

2条回答
  •  滥情空心
    2021-02-09 19:14

    [F.Y.I.] Shebang's typo caused me the same applet not found error.

    $ # The '!' was forgotten in shebang
    $ cat sample.sh
    #/bin/sh
    
    echo 'hello world'
    
    $ ./sample.sh
    sample.sh: applet not found
    
    

    In docker-compose, running the above script gives me the blow error:

    standard_init_linux.go:211: exec user process caused "exec format error"
    

提交回复
热议问题