How to fix a bundle install “nio4r error” on Rails 5.0.0

前端 未结 5 1476
谎友^
谎友^ 2021-01-02 04:58

The exact error is:

An error occurred while installing nio4r (1.2.1), and bundler cannot continue. Make sure that \'gem install nio4r -v \'1.2.1\'\' succeeds         


        
5条回答
  •  青春惊慌失措
    2021-01-02 05:34

    I resolved the issue by running the following command.

    bundle config build.nio4r --with-cflags="-std=c99"
    bundle
    

提交回复
热议问题