安装 rspec gem bignum 时出错,太大而无法转换为“long”

发布于 2024-10-17 04:32:25 字数 341 浏览 5 评论 0原文

我最近试图将安装的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

古镇旧梦 2024-10-24 04:32:25

您至少需要升级到 ruby​​-1.8.7-p248 才能保证修复它(升级 ruby​​gems 不起作用)。

有关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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文