Dir.exists? removed in Ruby 3.2
ScotterC opened this issue · 4 comments
ScotterC commented
Extconf uses Dir.exists?
which was removed in Ruby 3.2 (ruby-lang issue)
nmatrix/ext/nmatrix/extconf.rb
Lines 57 to 64 in beb266e
To those running into this problem here's a monkey patch gem file_exists which is really just this alias_method
alexis commented
And it's possible to install it by adding it to a Gemfile, with RUBYOPT='-rfile_exists' bundle
. (Though N[]
syntax didn't work for me in ruby 3.2).
translunar commented
I don't think anyone is maintaining this library anymore. I encourage you to fork it if you'd like to!
kojix2 commented
Use numo-narray.
https://github.com/ruby-numo/numo-narray
barracuda156 commented
Got the same error; it should just be patched to use exist?
instead.