Using WSL/Ubuntu on Windows, or Ubuntu Linux:
sudo apt install ruby ruby-chunky-png make
Using RubyGems:
sudo gem install chunky_png make