本文介绍了Ruby不允许我导入BigDecimal库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用 require'bigdecimal'
,但是出现一个错误,提示它无法加载文件.
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'
这是怎么回事?
推荐答案
ruby-bigdecimal是Cygwin中的一个独立程序包.您需要安装它.
ruby-bigdecimal is a separate package in Cygwin. You'll need to install that.
这篇关于Ruby不允许我导入BigDecimal库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!