“No such file or directory” but it exists

前端 未结 13 1974
南笙
南笙 2020-11-29 21:24

I simply want to run an executable from the command line, ./arm-mingw32ce-g++, but then I get the error message,

bash: ./arm-mingw32ce-g++: No s         


        
13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 21:57

    Below command worked on 16.4 Ubuntu

    This issue comes when your .sh file is corrupt or not formatted as per unix protocols.

    dos2unix converts the .sh file to Unix format!

    sudo apt-get install dos2unix -y
    dos2unix test.sh
    sudo chmod u+x test.sh 
    sudo ./test.sh
    

提交回复
热议问题