LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2015, 03:11 PM   #1
SonnyBrakes
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Rep: Reputation: Disabled
Homebrew install


I have uninstalled Homebrew and then reinstalled it using this line of code in the command line $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Once installed successfully I am asked to run $ brew help
This is the line that's returned: -bash: /usr/local/bin/brew: /bin/sh^M: bad interpreter: No such file or directory

I am trying to install Homebrew.

How can I fix this?
 
Old 08-19-2015, 03:31 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Looks like somebody screwed up and got some DOS line terminators in the file. You can fix that file with dos2unix, but I'm not sure how widespread the problem is.

as root:
Code:
dos2unix /usr/local/bin/brew
You may run into the same problem on other scripts that get called.
 
1 members found this post helpful.
Old 08-19-2015, 03:39 PM   #3
SonnyBrakes
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
dos2unix /usr/local/bin/brew

I've peaked inside the bin and brew is in there along with github meteor subl sublime git-lfs, no dos2unix file
 
Old 08-19-2015, 03:40 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I don't follow...what's in /usr/local/bin/ doesn't matter, and dos2unix won't be there because that's not where it's installed. Did you try running the command I suggested? If it comes back with a "dos2unix: command not found" error then you'll need to install it using your distro's package manager.

Last edited by suicidaleggroll; 08-19-2015 at 03:42 PM.
 
Old 08-19-2015, 04:17 PM   #5
SonnyBrakes
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Which command did you suggest?
 
Old 08-19-2015, 05:33 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It's in post #2, the dos2unix command.
 
Old 08-19-2015, 05:38 PM   #7
SonnyBrakes
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
-bash: dos2unix: command not found
 
Old 08-19-2015, 05:56 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by SonnyBrakes View Post
-bash: dos2unix: command not found
See above:

Quote:
Originally Posted by suicidaleggroll View Post
If it comes back with a "dos2unix: command not found" error then you'll need to install it using your distro's package manager.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop if not VPN on homebrew router. DangerKnowledge Linux - Security 1 05-12-2015 05:30 PM
LXer: Non-Linux FOSS: Homebrew LXer Syndicated Linux News 0 02-09-2015 05:20 AM
Nintendo Wii , installing the Homebrew Channel jens General 18 08-20-2008 03:07 PM
Xbox 360 closer to homebrew ? WhiskeyTangoFoxtrot General 3 03-01-2007 12:20 PM
homebrew router Motown Linux - Networking 2 11-27-2005 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration