无法在 Mac catalina 10.15.2 中使用 rvm 安装任何 ruby 版本
Unable to install any ruby version using rvm in Mac catalina 10.15.2
错误 运行 '__rvm_package_extract /Users/name/.rvm/archives/ruby-2.3.2.tar.bz2 /Users/name/.rvm/tmp/rvm_src_10476',
请阅读 /Users/name/.rvm/log/1579150426_ruby-2.3.2/extract.log
尝试提取源时出错。停止安装。
获取 ruby 解释器时出错。正在停止安装。
Log file:
[2020-01-16 10:23:46] __rvm_package_extract
rvm_debug __rvm_package_extract:$#: "$@"
\typeset __extract_src __extract_target __tempdir __path __file __return
__extract_src=""
__extract_target=""
shift 2
__return=0
__tempdir="$( TMPDIR="${rvm_tmp_path}" mktemp -d -t rvm-tmp.XXXXXXXXX )"
__rvm_package_extract_run "$__extract_src" "$__tempdir" "$@" || __return=$?
if (( __return == 0 ))
then
for __path in "$__tempdir"/*
do
__file="${__path##*/}"
if [[ -n "${__file}" && -e "$__extract_target/${__file}" ]]
then
\command \rm -rf "$__extract_target/${__file}" || __return=$?
fi
\command \mv -f "${__path}" "$__extract_target/" || __return=$?
done
fi
if [[ -n "$__tempdir" ]]
then
\command \rm -rf "$__tempdir"
fi
return $__return
}```
current path: /Users/name/.rvm/src
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/name/.rvm/gems/ruby-2.5.1/bin:/Users/name/.rvm/gems/ruby-2.5.1@global/bin:/Users/name/.rvm/rubies/ruby-2.5.1/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/openssl@1.0/bin:/usr/local/opt/openssl@1.0/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ name/.rvm/bin
GEM_HOME=
GEM_PATH=
command(3): __rvm_package_extract /Users/name/.rvm/archives/ruby-2.3.2.tar.bz2 /Users/name/.rvm/tmp/rvm_src_10476
根据您的 PATH
,您似乎正在尝试使用与 Rubies < 2.[= 不兼容的 OpenSSL 1.1 构建 Ruby 2.3.x 20=]。我怀疑 RVM 会很乐意构建最新的 Ruby 版本,但鉴于标题显示 "any" Ruby 版本,您应该确认这一点。如果这有问题,请检查日志并查看失败是否类似或出于不同的原因。
我建议获取最新的 Ruby 来构建以排除其他因素,然后处理 2.3 安装的 SSL 版本问题。
请参阅 Installing ruby-2.1.2: Cannot load such file -- openssl (LoadError) 以及有关 Ruby 和 OpenSSL 1.1
的其他近期问题
错误 运行 '__rvm_package_extract /Users/name/.rvm/archives/ruby-2.3.2.tar.bz2 /Users/name/.rvm/tmp/rvm_src_10476', 请阅读 /Users/name/.rvm/log/1579150426_ruby-2.3.2/extract.log 尝试提取源时出错。停止安装。 获取 ruby 解释器时出错。正在停止安装。
Log file:
[2020-01-16 10:23:46] __rvm_package_extract
rvm_debug __rvm_package_extract:$#: "$@"
\typeset __extract_src __extract_target __tempdir __path __file __return
__extract_src=""
__extract_target=""
shift 2
__return=0
__tempdir="$( TMPDIR="${rvm_tmp_path}" mktemp -d -t rvm-tmp.XXXXXXXXX )"
__rvm_package_extract_run "$__extract_src" "$__tempdir" "$@" || __return=$?
if (( __return == 0 ))
then
for __path in "$__tempdir"/*
do
__file="${__path##*/}"
if [[ -n "${__file}" && -e "$__extract_target/${__file}" ]]
then
\command \rm -rf "$__extract_target/${__file}" || __return=$?
fi
\command \mv -f "${__path}" "$__extract_target/" || __return=$?
done
fi
if [[ -n "$__tempdir" ]]
then
\command \rm -rf "$__tempdir"
fi
return $__return
}```
current path: /Users/name/.rvm/src
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/name/.rvm/gems/ruby-2.5.1/bin:/Users/name/.rvm/gems/ruby-2.5.1@global/bin:/Users/name/.rvm/rubies/ruby-2.5.1/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/openssl@1.0/bin:/usr/local/opt/openssl@1.0/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ name/.rvm/bin
GEM_HOME=
GEM_PATH=
command(3): __rvm_package_extract /Users/name/.rvm/archives/ruby-2.3.2.tar.bz2 /Users/name/.rvm/tmp/rvm_src_10476
根据您的 PATH
,您似乎正在尝试使用与 Rubies < 2.[= 不兼容的 OpenSSL 1.1 构建 Ruby 2.3.x 20=]。我怀疑 RVM 会很乐意构建最新的 Ruby 版本,但鉴于标题显示 "any" Ruby 版本,您应该确认这一点。如果这有问题,请检查日志并查看失败是否类似或出于不同的原因。
我建议获取最新的 Ruby 来构建以排除其他因素,然后处理 2.3 安装的 SSL 版本问题。
请参阅 Installing ruby-2.1.2: Cannot load such file -- openssl (LoadError) 以及有关 Ruby 和 OpenSSL 1.1
的其他近期问题