I need to install the Ruby gem 'Mechanize' for a class that I am taking and do a project using it. I am using windows and I have tried installing versions 2.6.1 and 2.5.3 with the devkits from the website rubyinstaller.org. After installing these versions I have then done 'gem install mechanize' and the gem installs correctly. However when I try to use even " require 'mechanize' ", I get a sizable stacktrace and I cannot figure out what is wrong. I have tried to uninstall and reinstall everything multiple times.
The stacktrace:
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:205:in `<class:Persistent>': uninitialized constant Process::RLIMIT_NOFILE (NameError)
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:190:in `<top (required)>'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mechanize-2.7.6/lib/mechanize.rb:6:in `<top (required)>'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from test.rb:1:in `<main>'
Any help or suggestions would be greatly appreciated. Thank you!