操作系统:macOS Catalina ( 10.15.7
)
壳:zsh
自卫队:v.0.8.0
在我的.zshrc
:
export JDK_HOME=/Users/Ctreptow/.asdf/shims
export JAVA_HOME=${JDK_HOME}
export PATH=$PATH:${JAVA_HOME}
. $(brew --prefix asdf)/asdf.sh
提示:
work/proj(master)> which java
/Users/Ctreptow/.asdf/shims/java
work/proj(master)> which ruby
/Users/Ctreptow/.asdf/shims/ruby
work/proj(master)> which jruby
jruby not found
work/proj(master)> which gem
/Users/Ctreptow/.asdf/shims/gem
work/proj(master)> which bundle
/Users/Ctreptow/.asdf/shims/bundle
当我今天尝试在项目中安装 gems 时,我意识到我已经配置rbenv
好了。我决定切换到. 我相信我已经删除了,但我可能错过了一些挥之不去的东西。asdf
jruby
asdf
rbenv
我也做过一个brew uninstall ruby-build
。
在jruby
项目中,我们Gemfile
指定:
ruby "2.5.7", engine: "jruby", engine_version: "9.2.13.0"
尝试安装jruby
会产生:
work/proj(master)> asdf install ruby jruby-9.2.13.0
Downloading jruby-bin-9.2.13.0.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/73a8c241a162e644c87e864c3485c55adedeb82a6fd80fa3cb538fdacda7af58
Installing jruby-9.2.13.0...
BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20201005)
Inspect or clean up the working tree at /var/folders/w2/m3v3grd53s191ys4wjc1tcnr0000gn/T/ruby-build.20201228141357.27332.TjSdh4
Results logged to /var/folders/w2/m3v3grd53s191ys4wjc1tcnr0000gn/T/ruby-build.20201228141357.27332.log
Last 10 log lines:
Date: Mon, 28 Dec 2020 17:11:23 GMT
ETag: "99df4eb89f88c7582bfe7c313daec7b4"
X-Cache: Hit from cloudfront
Via: 1.1 2cd732b3fedea7af49f60c3497dbaec3.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: ORD53-C3
X-Amz-Cf-Id: JksAVdI9wNtkTLb7k--bwYLHNrmbbhtI6FMFDQBm4h_OJi31nPbaLg==
Age: 10954
/var/folders/w2/m3v3grd53s191ys4wjc1tcnr0000gn/T/ruby-build.20201228141357.27332.TjSdh4/jruby-9.2.13.0 /var/folders/w2/m3v3grd53s191ys4wjc1tcnr0000gn/T/ruby-build.20201228141357.27332.TjSdh4 ~/code/work/proj
./ruby: line 446: /Users/Ctreptow/.asdf/shims/bin/java: No such file or directory
我怀疑错误来自某种rbenv
剩余,但我不确定是什么,因为我已经删除了~/.rbenv
目录,并且brew uninstall rbenv
从rbenv
我的zshrc
.
错误指定/Users/Ctreptow/.asdf/shims/bin/java
,暗示一个名为 的预期目录bin
,但我的shims
目录没有任何子目录。我也怀疑这是rbenv
事情的剩余部分。
我怎样才能asdf
安装jruby
?
更新:
我通过创建和符号链接解决bin
了~/.asdf/shims/java
这个java
问题bin/java
:
ls -ltr ~/.asdf/shims/bin
==>java -> ../java
现在,当我尝试安装时,它已经过去了,我面临着新的错误:
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR: Could not find a valid gem 'jruby-launcher' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - certificate verify failed (https://rubygems.org/specs.4.8.gz)
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store