puma gem - Failed to build gem native extension

前端 未结 13 806
广开言路
广开言路 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:26

    Try the following

    gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include
    bundle install
    

    You can also specify the gem version, like the following:

    gem install puma -v '2.11.3' -- --with-cppflags=-I/usr/local/opt/openssl/include
    

提交回复
热议问题