Thin and Puma fail with similar issues - ERROR: Failed to build gem native extension on Mac with OpenSSL@1.1

前端 未结 2 1927
广开言路
广开言路 2021-01-17 11:41

Describe the bug I have tried to do a gem install puma and gem install thin and get an error.

I have a brand new Mac that I

2条回答
  •  太阳男子
    2021-01-17 12:06

    The Puma team pointed me to a temporary solution for compiling puma.

    gem install puma:4.3.5 -- --with-cflags="-Wno-error=implicit-function-declaration"
    

    I used this variant for the latest version

    gem install puma -- --with-cflags="-Wno-error=implicit-function-declaration"
    

    I was also able to use this same technique to with thin, but I have not tested whether the gem works.

    gem install thin -- --with-cflags="-Wno-error=implicit-function-declaration"
    

提交回复
热议问题