LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04:31 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134
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, 04: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, 04:40 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134
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 04:42 PM.
 
Old 08-19-2015, 05: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, 06:33 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134
It's in post #2, the dos2unix command.
 
Old 08-19-2015, 06: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, 06:56 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134Reputation: 2134
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:30 PM
LXer: Non-Linux FOSS: Homebrew LXer Syndicated Linux News 0 02-09-2015 06:20 AM
Nintendo Wii , installing the Homebrew Channel jens General 18 08-20-2008 04:07 PM
Xbox 360 closer to homebrew ? WhiskeyTangoFoxtrot General 3 03-01-2007 01:20 PM
homebrew router Motown Linux - Networking 2 11-27-2005 09:59 PM

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

All times are GMT -5. The time now is 09:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration