+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Member level 1
    Points: 1,185, Level: 7
    ashkan_ed's Avatar
    Join Date
    Jan 2008
    Posts
    33
    Helped
    1 / 1
    Points
    1,185
    Level
    7

    bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    Hi
    when I want to execute a configure file, following error occurs,

    bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    what should I do to remove this error ?

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 33,613, Level: 44
    ckshivaram's Avatar
    Join Date
    Apr 2008
    Location
    villingen (Germany) / Bangalore
    Posts
    5,070
    Helped
    2158 / 2158
    Points
    33,613
    Level
    44
    Blog Entries
    1

    Re: bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    check these discussions
    "bad interpreter : no such file or directory" when configure "flex"
    LFS FAQ

    ---------- Post added at 16:52 ---------- Previous post was at 16:50 ----------

    See this toooo
    linux - ./configure : /bin/sh^M : bad interpreter - Stack Overflow
    " It is so simple to be happy,
    but it is so difficult to be simple"


    3 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Full Member level 3
    Points: 4,634, Level: 16

    Join Date
    Apr 2001
    Location
    California, USA
    Posts
    188
    Helped
    25 / 25
    Points
    4,634
    Level
    16

    Re: bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    config file must be in UNIX format and not DOS. Command "file configure" should tell you if configure is in UNIX format.



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 29,619, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,858
    Helped
    1114 / 1114
    Points
    29,619
    Level
    41
    Blog Entries
    9

    Re: bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    You can execute the following line command :

    dos2unix *.sh

    +++


    2 members found this post helpful.

  5. #5
    Member level 3
    Points: 1,828, Level: 9
    Achievements:
    7 years registered
    ic_qiand's Avatar
    Join Date
    Nov 2010
    Location
    Coventry UK
    Posts
    57
    Helped
    13 / 13
    Points
    1,828
    Level
    9

    Re: bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    Hi, ashkan_ed!

    If "dos2unix" did not exist, Try to edit it with vi editer ":%s/^M//g".


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  6. #6
    Super Moderator
    Points: 29,619, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,858
    Helped
    1114 / 1114
    Points
    29,619
    Level
    41
    Blog Entries
    9

    Re: bash: ./configure: /bin/sh^M bad interpreter: no such file or directory

    Quote Originally Posted by ic_qiand View Post
    If "dos2unix" did not exist, Try to edit it with vi editer ":%s/^M//g".
    At FEDORA, I think it is a legacy command, due was not needed to download it.

    +++



--[[ ]]--