I am working through the Ruby on Rails Tutorial (Rails5) by Michael Hartl in the AWS Cloud9 environment. I\'m finishing chapter 11 now. (new to programming as well)
It a
Ubuntu 19.04(Disco Dingo)
Firstly, locate the mkmf.log file and check for what is causing the error(s).
If there is something like this message logged: The "libxml2" package isn't available.
Head over to here, choose the right version which should take you to a page like this , for libxml2-dev for example, follow the instructions in the Install Howto. Running bundle install
afterwards should be a success.