【问题标题】:Problem with nio4r gem: An error occurred while installing nio4r (1.2.1), and Bundler cannot continuenio4r gem 的问题:安装 nio4r (1.2.1) 时出错,Bundler 无法继续
【发布时间】:2020-10-07 00:57:16
【问题描述】:

大家好,我刚开始在rails上使用ruby我有一个问题,当我生效时“捆绑更新”给了我这个错误:

"安装 nio4r (1.2.1) 时出错,Bundler 无法继续。 在捆绑之前确保gem install nio4r -v '1.2.1' 成功。 “在 Gemfile 中: devise_token_auth 被解析为 0.1.40,这取决于 rails 被解析为 5.0.0,这取决于 actioncable 被解析为 5.0.0,这取决于 nio4r

Ruby 版本:2.3.0

我尝试运行各种命令,例如:

捆绑配置 build.nio4r --with-cflags="-std=c99" 酿造更新

但他们没有工作

【问题讨论】:

    标签: ruby ruby-on-rails-5


    【解决方案1】:

    好像那个 gem 不支持 Ruby 2.3.0 版

    https://github.com/socketry/nio4r#supported-platforms

    另外,拥有像 rbenv 或 rvm 这样的 ruby​​ 版本管理器可能是个好主意。

    【讨论】:

      猜你喜欢
      • 2017-02-09
      • 2021-02-11
      • 2020-05-07
      • 1970-01-01
      • 2016-11-23
      • 1970-01-01
      • 1970-01-01
      • 2016-03-14
      • 2022-01-20
      相关资源
      最近更新 更多