Installing Homebrew on a old Lion mac


(Lars Goldschlager) #1

Hello community, nice to meet you after years of sporadic homebrew use.

I’m trying to install the brew on an old mac mini with 10.7.5 which is the newest it can run. trouble comes during install because the system’s curl/openssl is too old to support the server’s tls version;

==> Downloading and installing Homebrew…
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Failed during: /bin/bash -o pipefail -c ‘/usr/bin/curl -fsSL https://github.com/Homebrew/brew/tarball/master | /usr/bin/tar xz -m --strip 1’

I could try to manually learn how to get and setup brew’s curl and its deps, but before I endeavour to find out how to do this I wonder if there’s an alternate server or modification trick I could do to the setup script to overcome this.

Thank you very much, L.


(Wu Yongwei) #2

If I remember correctly, Homebrew stopped supporting Lion quite a long time ago. The listed requirement is OS X 10.10 or higher.

For this reason, I used MacPorts on my old Lion laptop, and switched back to Homebrew only when I got a new Mac.


(Lars Goldschlager) #3

Yes, there’s an asterisk though and says they do best effort, and it could/should work.

My stumbling block right now is the encription limited curl/openssl.

I downloaded the brew tarfiles by hand on firefox, and modified the install script to use the files instead of the curl pull, this allowed me to install homebrew now, but, when trying to install some packages, if the server the source is in has modern encription, curl fails.

Ironically enough, curl is one of those packages. I am thinking on trying to install and use brew’s curl as the system curl. But I can’t fetch it with brew (openssl and other deps have already been installed via brew).

I wonder if there’s any way to donwload the curl source file too and tell brew to use it to install… maybe worst case scenario, I could host a copy of the source in a local machine or server, download the formula and edit the formula to pull from alternative source? but is there an easier way to follow a formula but indicate what local source file to use?


Unable to install homebrew
(Lars Goldschlager) #4

And, I found my own answer, I edited the formula, with brew edit, changed the url to a local machine with http and dropped the source there, it’s building curl now.

Now I’m gonna search whether I can change the system’s curl by brew’s and whether that’ll be terrible or not.

Thanks.


(Mike McQuaid) #5

I’m addressing this in these three PRs:


(Lars Goldschlager) #6

I will try this as soon as I can (might be a week, will have to set a reminder) and let you know if they’ve helped. Thanks for the PRs.


(Jonathanou) #7

I’m having the exact same issue with an old mac mini with snow leopard installed.

I am able to manually untar brew and can run brew commands now. But when I try to install the latest curl I get this:

macmini:~ user$ brew install curl
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.7.leopard_64.bottle.tar.gz
curl: (35) Unknown SSL protocol error in connection to homebrew.bintray.com:443 
==> Downloading https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.3.7/portable-ruby-2.3.7.leopard_64.bottle.tar.gz
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Error: Failed to download https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.7.leopard_64.bottle.tar.gz and https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.3.7/portable-ruby-2.3.7.leopard_64.bottle.tar.gz!

Do not file an issue on GitHub about this: you will need to figure out for
yourself what issue with your internet connection restricts your access to
both Bintray (used for Homebrew bottles/binary packages) and GitHub
(used for Homebrew updates).
Error: Failed to install vendor Ruby.

I tried to do brew edit curl to use the http url, but I also get the same error. It seems that brew wants to update itself whenever it runs a command first?

I’m curious if the PRs helped, I tried passing in --insecure to my brew commands but it doesn’t seem to work.

What should I do to get curl updated? Do I need to manually download the “bottle” tar file too?


(Sean Molenaar) #8

I think your best bet is telling brew to compile curl from source.


(Jonathanou) #9

I thought brew install curl is trying to compile curl from source? Is there a different command to compile from source?


(Sean Molenaar) #10

If it tries to get a bottle it wouldn’t be compiling from source. You can pass --build-from-source to brew install to force compiling from source.


(Jonathanou) #11

I was able to get around the “bottle” error described above by manually downloading the tar file and putting it in the expected location.

Here’s what I get when I run brew install --build-from-source curl

macmini:~ user$ brew install --build-from-source curl
Error: No available formula with the name "curl" 
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Warning: Error searching on GitHub: curl failed! 
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Error: No formulae found in taps.
Error: No available formula with the name "git" 
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Updating Homebrew...
Warning: Error searching on GitHub: curl failed! 
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Error: No formulae found in taps.
Error: Git must be installed and in your PATH!
Error: No available formula with the name "curl" 
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Warning: Error searching on GitHub: curl failed! 
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Error: No formulae found in taps.

It seems like it still wants to use curl to search for taps? The thing I also find odd is it keeps complaining there is no formula named “curl”, shouldn’t there be a built-in formula for curl if brew is properly installed?

@SpeakerToMeat can you share how you were able to edit the curl formula? It seems I don’t have the curl formula on my system.


(Sean Molenaar) #12

@MikeMcQuaid it should be part of the first run after install right?


(Mike McQuaid) #13

Yes, Homebrew should try to install a curl and git when needed on a brew update. It’s possible this is broken on fresh installs on older OS X versions since GitHub deprecated old ciphers.


(Don Bright) #14

confirm, that curl and git from 10.7.5 xcode command line tools will no longer work on basic stuff like github. ssl version is too old. if anyone needs to ‘bootstrap’ curl on raw 10.7.5 please consider this little project, i hand crafted artisinal versions of curl dependencies and built using all natural, organic command line options : https://try.gitea.io/donbright/lm


(Sean Molenaar) #15

You could try https://github.com/mistydemeo/tigerbrew