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? |
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 |
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
|
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.
|
Which command did you suggest?
|
It's in post #2, the dos2unix command.
|
-bash: dos2unix: command not found
|
Quote:
Quote:
|
All times are GMT -5. The time now is 06:23 PM. |