Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dir.tmpdir fails with error on AARCH64 #4600

Closed
etehtsea opened this issue May 10, 2017 · 0 comments · Fixed by jnr/jnr-posix#101
Closed

Dir.tmpdir fails with error on AARCH64 #4600

etehtsea opened this issue May 10, 2017 · 0 comments · Fixed by jnr/jnr-posix#101
Milestone

Comments

@etehtsea
Copy link
Contributor

etehtsea commented May 10, 2017

Environment

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>'
etehtsea added a commit to etehtsea/jruby that referenced this issue May 10, 2017
@enebo enebo added this to the JRuby 9.1.9.0 milestone May 11, 2017
etehtsea added a commit to etehtsea/jruby that referenced this issue May 13, 2017
etehtsea added a commit to etehtsea/jruby that referenced this issue May 13, 2017
etehtsea added a commit to etehtsea/jruby that referenced this issue May 13, 2017
etehtsea added a commit to etehtsea/jruby that referenced this issue May 14, 2017
etehtsea added a commit to etehtsea/jruby that referenced this issue May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants