Thread: Bad Interpreter

  1. #1
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175

    Bad Interpreter

    What does this mean and how can I fix it?

    bash:./configure:bad interpreter:file or directory not found

  2. #2
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    The top has #!/bin/sh like any other configure script...

  3. #3
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    change the permissions...make sure that you can execute the script...
    Last edited by mix0matt; 05-23-2002 at 09:38 AM.

  4. #4
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Doh

    I should have thought of that....

  5. #5
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    OK.... so I thought I hadn't made it executable, but it was all along. Here's some more information... maybe something will help. I downloaded winex from CVS using windows ::gag:: I had never used CVS before but I seem to have eventually gotten it all down. So then I fled from windows and booted up to linux and copied the wine directory from my windows partition to linux. From there I entered the directory and tried to configure it and it wouldn't work. Just for the heck of it I renamed the configure file to something like "justatest" and then executed it and instead of

    bash:./configure:bad interpreter:file or directory not found

    I got

    bash:./configure:bad interpreter:Permission denied

    I'm really confused...

  6. #6
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    perhaps its actually
    /bin/sh
    change
    #!/bin/sh
    to
    #!/bin/bash
    if you have the BASH shell that is, if it still has the interpreter problem, try looking at the script and look for spelling error or maybe even an outdated command
    sometimes sbin commands are outdated on older scripts.
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  7. #7
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    I wouldn't think I would have to change anything since it was downloaded just a few days ago off of winex. I'll try what you said though.
    OS: Linux Mandrake 9.0
    Compiler: gcc-3.2
    Languages: C, C++, Java

    If you go flying back through time and you see somebody else flying forward into the future, it's probably best to avoid eye contact.

  8. #8
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Fixed it

    All of the line ends were wrong... they were all CR+LF instead of LF. I had suspected this although I wasn't exactly sure how to check and then change them... but I figured it out.
    OS: Linux Mandrake 9.0
    Compiler: gcc-3.2
    Languages: C, C++, Java

    If you go flying back through time and you see somebody else flying forward into the future, it's probably best to avoid eye contact.

  9. #9
    Registered User
    Join Date
    Apr 2002
    Posts
    129
    Your both sephiroth, or is JasonLikeJava's avatar not sephiroth?
    flashdaddee.com rocks!!!

  10. #10
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Yeah, I'm sephiroth.... but I'm not really into Final Fantasy. I didn't even know mine and Lynux-Penguin's were the same...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bad and fail of steam
    By George2 in forum C++ Programming
    Replies: 8
    Last Post: 02-19-2008, 03:07 AM
  2. Can you still view the bios screen with a bad CPU?
    By HyperCreep in forum Tech Board
    Replies: 4
    Last Post: 12-31-2006, 06:57 PM
  3. data loss bad bad bad
    By RoD in forum Tech Board
    Replies: 4
    Last Post: 05-01-2003, 12:06 PM
  4. Shocking(kind of)
    By Shadow in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 12-10-2002, 08:52 PM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM