An error occurred while installing thin (1.7.2) An error occurred while installing thin (1.7.2) ruby ruby

An error occurred while installing thin (1.7.2)


disabling the error fixed it:

bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"


The solution that worked for me was slightly different. I had to run the following for my specific gem version, using rbenv on Big Sur 11.3.1. I added a more in depth explanation of my particular error and solution here.

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