An error occurred while installing thin (1.7.2)
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"