Solution: /usr/bin/env: "bash\r": no such file or directory

I recently downloaded a program on github but there are always problems:

Insert picture description here

Solution:
1
Use VIM to open the file

按一下ESC
输入
:set ff #千万别少了“:”冒号
后回车

Insert picture description here

Found that the file format is dos and needs to be changed to unix format
2

Input
: set ff=unix #Don’t miss the ":" colon
and press Enter to set it to unix format
Insert picture description here

:wq #Save and exit
Insert picture description here

这样就可以用./ 来运行了

Guess you like

Origin blog.csdn.net/shanlijia/article/details/107922929