Last active
October 19, 2020 05:27
-
-
Save sutanto/2a72ee90a4b3e6b7ff3da815ebfbd3cb to your computer and use it in GitHub Desktop.
Install curb 0.9.3 on MacOS Catalina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You'll probably also need to Install Ruby 2.3.x with OpenSSL 1.0 (on Catalina), | |
# follow this gist *before* you install curb: https://gist.github.com/sutanto/75a778f94edae116aeaa5ec56955ce58 | |
# Recent Homebrew version no longer allow the `brew install formula` command, we'll need to create our own "custom" tap: | |
brew tap-new sutanto/homebrew-versions | |
# make sure that we don't use the "shallow" local homebrew repo | |
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow | |
# extract the required curl version | |
brew extract --version 7.35.0 curl sutanto/homebrew-versions | |
# finally install it | |
# brew command below will fail with “Error: undefined method `strip' for :provided_by_osx:Symbol”, ignore this, the install is still completed successfully | |
brew install sutanto/homebrew-versions/[email protected] | |
gem install curb -v '0.9.3' -- --with-openssl-dir=/usr/local/opt/openssl --with-curl-dir=/usr/local/opt/[email protected] |
@alexey, in the gist above, I put a link to https://gist.github.com/sutanto/75a778f94edae116aeaa5ec56955ce58 which described how to install Ruby 2.3 with OpenSSL 1.0.
I'll change the comment in the gist above so it'll be more obvious.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had similar issue of mix of curl(and
curl-openssl
).It turns out, OpenSSL 1.1 isn’t compatible with Ruby 2.3.x, and I probably just accidentally installed 1.1 instead of 1.0
I can add my tries for you:
if this is not worked at any step try:
(or
reinstall
).Use any path to your local ssl installation, like
/usr/local/opt/openssl
, mind not to set it to binaries folder but to relative root folder of openssl 1.0UNINSTALL rvm with
rvm implode
- follow the post uninstall instructions, then install rvm from scratch, then:curl-openssl
:With brew and set
--with-curl-dir=/usr/local/opt/curl-openssl
(or any your path to it) option to$ rvm
command. Yes its another curl calledcurl-openssl
. Do not update $PATH or your *rc files with path to it unless you wantcurl-openssl
by defaultFinally:
bundle install
Notes:
which curl
)