puma gem - Failed to build gem native extension

前端 未结 13 812
广开言路
广开言路 2020-12-02 10:53

I was getting the following error while installing puma gem

    $ gem install puma
    Fetching: puma-2.11.2.gem (100%)
    Building native extensions.  This coul         


        
13条回答
  •  难免孤独
    2020-12-02 11:07

    When using bundler and homebrew:

    $ bundle config build.puma --with-cppflags=-I$(brew --prefix openssl)/include
    $ bundle install
    

    I copied and adapted this answer from Lloeki here: https://stackoverflow.com/a/31516586/704499

提交回复
热议问题