/bin/bash^M: bad interpreter: no such file or directory
location: linuxquestions.com - date: July 6, 2006
Hey people! I am trying to install Slackware in a..."different" way. First of all, I install only the base. Then, I boot into my new slackware system, go to a directory where I have packages and use a simple script in shell to install them. It is something like that:
echo Installing packages...
BUT...when I try to run it:
/bin/bash^M: bad interpreter: no such file or directory
So I use vi to see the file and delete the damn it ^M after #!/bin/bash and surprise: there was no ^M. It is just as I typed: #/bin/bash [ENTER] [ENTER] echo Installing packages... [ENTER] ... so what could be happening? Why when I try to run the script does the command line think that there is a "^M" after every line? Is there anything I can do? Thanks!
Edit: The "base" are packages series "a".
/bin/ksh: bad interpreter: No such file or directory
location: linuxquestions.com - date: January 29, 2013
I use the RH Linux and the bash shell. I got a ksh script from my partner. As I run this script I got error as follow:
bad interpreter: No such file or directory
location: linuxquestions.com - date: August 5, 2004
i downloaded this script from "sourceforge.net/projects/automysqlbackup/" so i could backup my database everyday via a cron. (it wont let me post a url)
however, when time comes around to run the script i get a "bad interpreter: No such file or directorySQL_Backups/cron/mysqlbackup.sh: /bin/bash"
any help would be greatly appreciated. i'm pulling my hairout over this problem!!!
/bin/csh: bad interpreter: No such file or directory
location: ubuntuforums.com - date: June 9, 2009
Dear user, I am new to this ubuntu linux world and having some problem when I am trying to install a software. When I am giving a script
in the terminal I am getting an error which reads:
bash: ./expand_lapw: /bin/csh: bad interpreter: No such file or directory
Could anyone please help me in sorting out the problem without using the heavy technical jargon.
RedCloth Error?: "bad interpreter: No such file or directory"
location: ubuntuforums.com - date: June 3, 2008
I'm very new at programming (only read half of Pine's "Learn to Program" via Ruby new), so I apologize if my problem makes anyone reach for some Advil.
I tried installing RedCloth, and after supposedly doing everything right (installing ruby, ruby gems, & dependencies), I finally go into terminal and try typing :
to start it up, but I keep getting the following:
bash: /usr/bin/redcloth: /usr/bin/ruby18: bad interpreter: No such file or directory
I've tried Googling, but most of what pops up is Ruby talk that I'm afraid is beyond my current ability to decipher.
I'm probably just not using it right, but I have no clue what I'm doing wrong either.
/usr/bin/perl^M: bad interpreter: No such file or directory
location: linuxquestions.com - date: December 12, 2011
I have installed Ubuntu 11.10 Latest Version 32-bit and I have a problem after I have installed Perl.
I got this error: /usr/bin/perl^M: bad interpreter: No such file or directory
what I need to to for fix this error?
I've installed apt-get install perl and lib
all this commands i used:
perl -MCPAN -e 'install Parallel::ForkManager'
perl -MCPAN -e 'install Authen::SASL'
perl -MCPAN -e 'install Net::SMTP'
perl -MCPAN -e 'MIME::Base64'
Now I don't know what to do I try to remove and re-install again apt-get update after all and without success.
Please help me step by step what to do.
I will appreciate your effort.
[SOLVED] Getting "bad interpreter: no such file or directory
location: linuxquestions.com - date: January 24, 2012
I've got a script that was edited with Windows Notepad before being copied onto a machine with RHEL. The script fails with the following message:
/bin/sh^M: bad interpreter: no such file or directory
My suspicion is that Notepad put in a control character (^M) that RHEL is now trying to interpret as part of the name of the script interpreter. Can anyone confirm if that is the case, or suggest a different problem might be at the bottom of this?
"bad interpreter : no such file or directory" when configure "flex"
location: linuxquestions.com - date: May 29, 2004
i download flex (a lex generator) from
and decompress the flex.zip
when I run ./configure script, shell display the following error:
:bad interpreter : no such file or directory
When I do
ln -s /bin/bash /bin/sh
shell tell me the file is already exist.
I modify the first line of configure script to #!bin/bash, but the bad interpreter error occurs again. Help me.
the configure script is as follows:
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.1
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# Any additions from configure.in:
# Initialize some variables set by options.
# The variables
/bin/bash: ./perlscript.pl: usr/bin/perl: bad interpreter: No such file or directory
location: ubuntuforums.com - date: August 20, 2014
I wrote a perl script in ubuntu, in vim.
I put this at the top:
(I also tried a -W but the result is the same)
The script works find if I run the script using perl.
When I run it with ./ I get this error:
/bin/bash: ./perl_script.pl: usr/bin/perl: bad interpreter: No such file or directory
Just to emphasize, I did not write this in windows. This script has never seen windows.
Perl bad interpreter: No such file or directory
- date: November 25, 2009
Running Ubuntu 9.10 and Perl
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
bash: ./bktar.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
How to make this work??
Page: 1 2 3 4 5 6 7 8 9 10