Not able to install ruby for rbenv after MAC OS Big Sur update
I was using RVM initially and after MAC OS update to Big Sur, I not now able to install ruby either RVM and Rbenv.
I am getting following error:
rbenv install $LATEST_RUBY_VERSION
Downloading ruby-3.0.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
error: failed to download ruby-3.0.0.tar.gz
BUILD FAILED (macOS 11.1 using ruby-build 20210119)
As Big Sur OS using zsh terminal my .zshrc file is as follows:
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/subratrout/.oh-my-zsh"
...
....
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export PATH="/usr/local/opt/openjdk/bin:$PATH"
# export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
# if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
if which rbenv > /dev/null; then
eval "$(rbenv init -)";
fi
export PATH="/usr/local/sbin:$PATH"
# Setup Compiler paths for readline and openssl
local READLINE_PATH=$(brew --prefix readline)
local OPENSSL_PATH=$(brew --prefix openssl@1.1)
export LDFLAGS="-L$READLINE_PATH/lib -L$OPENSSL_PATH/lib"
export CPPFLAGS="-I$READLINE_PATH/include -I$OPENSSL_PATH/include"
export PKG_CONFIG_PATH="$READLINE_PATH/lib/pkgconfig:$OPENSSL_PATH/lib/pkgconfig"
# Use the OpenSSL from Homebrew instead of ruby-build
# Note: the Homebrew version gets updated, the ruby-build version doesn't
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$OPENSSL_PATH"
# Place openssl@1.1 at the beginning of your PATH (preempt system libs)
export PATH=$OPENSSL_PATH/bin:$PATH
# Load rbenv
eval "$(rbenv init -)"
# Extract the latest version of Ruby so you can do this:
# rbenv install $LATEST_RUBY_VERSION
export LATEST_RUBY_VERSION=$(rbenv install -l | grep -v - | tail -1)
I am getting following error:
rbenv install $LATEST_RUBY_VERSION
Downloading ruby-3.0.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
error: failed to download ruby-3.0.0.tar.gz
BUILD FAILED (macOS 11.1 using ruby-build 20210119)
As Big Sur OS using zsh terminal my .zshrc file is as follows:
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/subratrout/.oh-my-zsh"
...
....
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export PATH="/usr/local/opt/openjdk/bin:$PATH"
# export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
# if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
if which rbenv > /dev/null; then
eval "$(rbenv init -)";
fi
export PATH="/usr/local/sbin:$PATH"
# Setup Compiler paths for readline and openssl
local READLINE_PATH=$(brew --prefix readline)
local OPENSSL_PATH=$(brew --prefix openssl@1.1)
export LDFLAGS="-L$READLINE_PATH/lib -L$OPENSSL_PATH/lib"
export CPPFLAGS="-I$READLINE_PATH/include -I$OPENSSL_PATH/include"
export PKG_CONFIG_PATH="$READLINE_PATH/lib/pkgconfig:$OPENSSL_PATH/lib/pkgconfig"
# Use the OpenSSL from Homebrew instead of ruby-build
# Note: the Homebrew version gets updated, the ruby-build version doesn't
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$OPENSSL_PATH"
# Place openssl@1.1 at the beginning of your PATH (preempt system libs)
export PATH=$OPENSSL_PATH/bin:$PATH
# Load rbenv
eval "$(rbenv init -)"
# Extract the latest version of Ruby so you can do this:
# rbenv install $LATEST_RUBY_VERSION
export LATEST_RUBY_VERSION=$(rbenv install -l | grep -v - | tail -1)
Notifications
You’re not receiving notifications from this thread.