Error installing mac homebrew - installation

I'm trying to install homebrew for mac. As per the easy homebrew install method I entered:
plpxdc1:~ lpxdc1$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I get the following error, however:
curl: (22) The requested URL returned error: 403
I realise that there has been a fairly similar question asked on this (Trouble Installing Mac Homebrew, and I've tried following the fixes on there and still no joy. Is there a way to establish where the error is occurring? Suggestions are appreciated.

Related

Homebrew not working on macOS due to invalid version value

whenever I try to use anything brew related, or even just type brew on my computer, this error appears:
"/usr/local/Library/Homebrew/version.rb:186:in `initialize': Version value must be a string (TypeError)
from /usr/local/Library/Homebrew/os/mac/version.rb:24:in `initialize'
from /usr/local/Library/Homebrew/os/mac.rb:15:in `new'
from /usr/local/Library/Homebrew/os/mac.rb:15:in `version'
from /usr/local/Library/brew.rb:31:in `<main>'"
I am fairly new to developing, so I may be asking a stupid question, and I do not know what to try next.
There are similar questions related to what you have right now. Here are some things that you can try:
Upgrade homebrew, run the following lines in sequence:
brew update-reset
brew upgrade
Or Re-install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After doing either options above you can test if homebrew is working by running the following in your terminal:
brew --version
For good measure try running the following after all other steps mentioned:
brew doctor

Homebrew won't install on Big Sur (OS X 11.1) (M1)

I'm trying to install Homebrew on my OSx 11.1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
But I get the following error:
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version /bin/bash: not found
I found similar errors reported when trying to install Homebrew on old OSX systems, but this is not the case here. Does anyone have any idea what should I do?
Thank you!
maybe your curl is somehow linked to an older version(like macports). check the curl path and make sure you are using /usr/bin/curl.
I was not using the system tools here. which curl returned:
/opt/local/bin/curl
So I tried reducing the installer's PATH to the basics with the code below:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin /bin/bash -c "$(/usr/bin/curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Than added Homebrew to my PATH in /Users/hatvaniistvan/.profile with
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> Users/hatvaniistvan/.profile
eval $(/opt/homebrew/bin/brew shellenv)
This solved the problem and I managed not just install, but update homebrew as well.

Trouble installing Ruby (Failed to download resource "readline--patch")

I'm getting this error when I try to install Ruby. I've tried looking at this and this but to no avail
➜ ~ brew install ruby
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for ruby: readline, libyaml, makedepend
==> Installing ruby dependency: readline
==> Downloading https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz
==> Downloading from http://mirror.team-cymru.org/gnu/readline/readline-6.3.tar.gz
######################################################################## 100.0%
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "readline--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff
I've met the same problems when I installed Ruby on my Mac. Maybe you could try the following steps to solve this problem, it works for me :)
update your brew, paste /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" at a Terminal prompt. (or following instructions on brew homepage) Or just brew update
Run brew install ruby
Good luck to you! :)

Cannot install Homebrew in Mac Sierra

I have a problem installing homebrew in mac sierra.
I followed the instructions from this link:
https://coolestguidesontheplanet.com/installing-homebrew-on-macos-sierra-package-manager-for-unix-apps/
This is the command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
The link exists but when I type this in the terminal, I encounter this error:
curl: (35) Server aborted the SSL handshake
Can anyone suggest a solution to this?
Many thanks, Ill appreciate any help.
https://raw.githubusercontent.com/Homebrew/install/master/install
Open the link in browser and save the file as install.rb.
Then run
ruby install.rb
I run into this issue, and it is caused by the network unstabitily.
My solution is:
Uninstall the homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Then install it again:
ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It works for me.
Have you tried xcode-select --install before that command? This solution may work on some systems.
Another potential issue is your curl maybe too old. Upgrade to 7.46+ may solve this. You have to build curl from scratch if so.
If nothing helps, and you really want to install brew without second thought, try adding --insecure after -fsSL.
At last, you can always pull the git repo and install manually.
Please use this to install homebrew in MacOS, previous one was deprecated.
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install homebrew mac os x for xampp

A month ago I installed hombrew and pystuff to use python on my mac. Since then I've been doing more database oriented programming ie mysql and php. Long story short; I was trying to run xampp command stuff from the terminal but it wasn't working so I deduced that my installation paths for xampp (mamp) wasn't valid. I have since uninstalled xampp and tried installing with home-brew via this link: http://www.threeeyedbird.com/blog/2013/06/11/setting-up-a-local-dev-environment-with-homebrew/
The first line of installation;
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
yielded a result that told me the link was invalid so I;
brew ls
to make sure home-brew was already installed, and it was...
I have since uninstalled home-brew in this link
https://apple.stackexchange.com/questions/82807/how-to-cleanly-remove-homebrew
Now when I type:
brew ls
It says command not found which is good because i wanted to uninstall everything completely...
I want to install home-brew in the proprietary paths that would make for a great local developing environment i.e.; all the command line short cuts work, all the paths are correct etc
The only problem now when I enter the first line of the home-brew install for a fresh start (which installs home-brew): ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
The terminal tells me the link is invalid. and i get a bad request 400 error
How can I download home-brew perfectly all things considered?
This was the link that didn't work
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
I just installed it using this link from the home-brew web page
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Resources