In the middle of the error trace is says the reason it can’t installed the extconf.rb is developer tools.
So try
xcode-select --install
Based on answer Jekyll won't install on OSX High Sierra out the box
And step 4 here
In the middle of the error trace is says the reason it can’t installed the extconf.rb is developer tools.
So try
xcode-select --install
Based on answer Jekyll won't install on OSX High Sierra out the box
And step 4 here