Open ScotterC opened 1 year ago
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).
I don't think anyone is maintaining this library anymore. I encourage you to fork it if you'd like to!
Use numo-narray. https://github.com/ruby-numo/numo-narray
Got the same error; it should just be patched to use exist?
instead.
Extconf uses
Dir.exists?
which was removed in Ruby 3.2 (ruby-lang issue) https://github.com/SciRuby/nmatrix/blob/beb266ed1ae56206af73f8f94bf9956213f9997b/ext/nmatrix/extconf.rb#L57-L64To those running into this problem here's a monkey patch gem file_exists which is really just this alias_method