安装 rspec gem bignum 时出错,太大而无法转换为“long”
我最近试图将安装的 rspec 版本从 -v 2.5.0 更改为 1.3.0 以与 Rails 2.x 一起使用。卸载 cucumber、rspec-rails 和 rspec 后,我重新安装,然后收到错误“错误:执行 gem ... (RangeError) bignum 太大,无法转换为‘long’。我尝试安装其他 gems rspec-rails和黄瓜,但他们现在也给了我这个错误,即使当我尝试安装在出现相同错误之前安装的 rspec -v 2.5.0 时,我也只能安装其他宝石。尝试安装与 rspec(rspec、rspec-rails 和 cucumber)相关的 gem,因为我需要为我的 Rails 应用程序运行一些 Cucumber 测试。 - 亚当
I was recently trying to change the version of rspec I installed from -v 2.5.0 to 1.3.0 to work with rails 2.x. After uninstalling cucumber, rspec-rails, and rspec I went to reinstall and then recieved the error "ERROR: While executing gem ... (RangeError) bignum too big to convert into `long' . I tried installing the other gems rspec-rails and cucumber but they are now giving me this error as well. Even when I try to install the rspec -v 2.5.0 which was installed before I get the same error. I can install other gems fine. I only get the error when I try to install gems that are associated with rspec (rspec, rspec-rails and cucumber). This is a real pain because I need to run some cucumber tests for my rails application. Any insight appreciated.
- Adam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您至少需要升级到 ruby-1.8.7-p248 才能保证修复它(升级 rubygems 不起作用)。
有关http://revision-zero.org/history-of-a-bug<的更多详细信息/a>
You need to upgrade to ruby-1.8.7-p248 at least to have a guarantee to fix it (upgrading rubygems won't work).
More details on http://revision-zero.org/history-of-a-bug