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

前端 未结 2 1925
广开言路
广开言路 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:05
    bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"
    

    opened https://github.com/macournoyer/thin/issues/370 to get it fixed or documented in thin

    0 讨论(0)
  • 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"
    
    0 讨论(0)
提交回复
热议问题