Ruby won't let me import the BigDecimal library

半世苍凉 提交于 2021-01-29 12:47:47

问题


I tried using require 'bigdecimal', but I got an error saying that it can't load the file.

/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bigdecimal (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'

What's going on here?


回答1:


ruby-bigdecimal is a separate package in Cygwin. You'll need to install that.



来源:https://stackoverflow.com/questions/51682003/ruby-wont-let-me-import-the-bigdecimal-library

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!