OK, I’m at the end of my tether with this. There are a few similar questions but they all refer to therubyracer 0.10, and they mostly conclude that the problem can be fixed by u
I was able to get things going again by running gem install libv8 -v '3.16.14.3' -- --with-system-v8.
gem install libv8 -v '3.16.14.3' -- --with-system-v8
Reference: https://github.com/cowboyd/libv8/issues/120