jruby 9.1.8.0 (2.3.1) 2017-03-06 90fc7ab OpenJDK 64-Bit Server VM 25.131-b11 on 1.8.0_131-8u131-b11-1-b11 +jit [linux-aarch64]
Linux 4.9.23-std-1 #1 SMP Mon Apr 24 13:18:14 UTC 2017 aarch64 GNU/Linux
When I tried to update rubygems I've got strange error:
kes@labs:~$ ~/jruby-9.1.8.0/bin/jruby --dev -J-noverify -S gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.6.12.gem (100%)
Successfully installed rubygems-update-2.6.12
Installing RubyGems 2.6.12
io/console on JRuby shells out to stty for most operations
ERROR: While executing gem ... (ArgumentError)
could not find a temporary directory
It happen because Dir.tmpdir is failing with error:
irb(main):001:0> require 'tmpdir'; Dir.tmpdir
ArgumentError: could not find a temporary directory
from /home/kes/jruby-9.1.8.0/lib/ruby/stdlib/tmpdir.rb:35:in `tmpdir'
from (irb):1:in `<eval>'
from org/jruby/RubyKernel.java:1000:in `eval'
from org/jruby/RubyKernel.java:1298:in `loop'
from org/jruby/RubyKernel.java:1120:in `catch'
from org/jruby/RubyKernel.java:1120:in `catch'
from /home/kes/jruby-9.1.8.0/bin/jirb:13:in `<main>'
The text was updated successfully, but these errors were encountered:
Environment
When I tried to update rubygems I've got strange error:
It happen because
Dir.tmpdir
is failing with error:The text was updated successfully, but these errors were encountered: