gem 更新后出现 Rake 错误 - 找不到指定的过程(LoadError)

Rake error after gem update- The specified procedure could not be found(LoadError)

我通过 运行 手动更新 Rubygems setup.rb file.Since 然后,我无法使用 rackup(我没有使用 rails。它是安装在机架上的独立葡萄 api。出现以下错误-

The specified procedure could not be found. - C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.so (LoadError)

我已经检查了错误中提到的文件路径。 util.so 文件存在于该确切的文件路径中。尝试重新安装 bigdecimal gem 并将 bigdecimal 添加到我的 gem 文件,但没有帮助。下面是我的代码。它非常简单,并且在我 运行 update-

之前运行良好
Dir["#{File.dirname(__FILE__)}/app/api/**/*.rb"].each { |f| require f }
module API
  class Root < Grape::API
    format :json
    prefix :api
    get :status do
    { status: 'ok' }
    end
  end
end
Application = Rack::Builder.new do
map "/" do
run API::Root
end
end

我完全无法 运行 在我的 system.Previously 构建的 API 上进行 rackup,这些 API 运行良好,现在却失败了 error.Any 关于我在这种情况下可以做什么的建议是很棒 help.Thanks!

当我卸载 bigdecimal gem 时,我得到一个错误提示 Ruby headers 找不到。 因此,作为最终解决方案,我 re-installed Ruby 使用 Devkit(不确定我在之前的安装中是否有 devkit)解决了我的问题。