Jump to content
  • 0
Sign in to follow this  
Zirius

[ HELP ] "-bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory"

Question

hello! I uploaded my hercules from windows environment to my linux server, and it is saying:
 
"-bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory"
 
but I'm pretty sure I have the configure file in my server and I am IN the current directory and I have the full permission to run the configure.

 

[xxxx-server@xxxx~]$ lsbranches  trunk[xxxx-server@xxxx~]$ cd trunk[xxxx-server@xxxx trunk]$ ./configure-bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory

 

I am suspecting the transfer from windows environment to linux environment.
 
This is my 3rd try to set it up.
 
The first time, I uploaded directly from my computer, run the configure and failed.
 
Second time, I get Hercules via SVN, configure runs smooth, so...
 
(Third time), I uploaded my hercules (overwriting), running configure fails.
 
Please help.
 
Thanks!

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Sorry, I need to brush up my unix skills, 

 

running dos2unix recursively solves my problem.

 

The "dos2unix" optional install at wiki gave me hint. LOL.

Edited by Zirius

Share this post


Link to post
Share on other sites
  • 0

The reason why this is necessary is because of the way Windows ends lines versus Linux/Unix. Windows adds a pesky "^M" while as Linux/Unix does not.

Share this post


Link to post
Share on other sites
  • 0

yes thanks man! To heads up everybody, always have backup for your "map_cache.dat", lazy me runs dos2unix recursively (which is fastest way to fix), then I'll just re upload my windows map_cache.dat. (or just don't dos2unix the map_cache.dat)

 

Anyways, what are the only files I needed to run dos2unix to be able to compile?

 

Thanks!

Share this post


Link to post
Share on other sites
  • 0

I think the only file that gave me problems when compiling once transferred from Windows was configure. You can test trying to compile and just dos2unix the files your machine complains about.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.