getting error /usr/bin/env: sh: No such file or directory when running command play

后端 未结 5 1353
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 12:37

I am a beginner on Play framework . I just extract Play framework files and extracted them and gave the path of play directory in $PATH global variable. After t

5条回答
  •  Happy的楠姐
    2020-12-28 13:23

    Just change the sh terminal to bash using this link and everything should be fine.

    1. Change user entry in /etc/passwd
    a) edit /etc/passwd using any editor
    
    $ vi /etc/passwd
    b) find the line that belongs to the user (foo) that we about to modify
    foo:x:1001:1001::/home/foo:/bin/sh
    c) change from /bin/sh to /bin/bash
    foo:x:1001:1001::/home/foo:/bin/bash
    d) save
    e) Logout and login back
    
    2. Use chsh command
    a) type chsh
    $ chsh
    b) You will be asked for password. Enter your password
    c) This screen will appear
    Enter the new value, or press ENTER for the default
    Login Shell [/bin/sh]:
    d) Put /bin/bash at the menu and press Enter
    

提交回复
热议问题