Como tratar o erro do Ruby on Rails: “Por favor, instale o adaptador postgresql:` gem install activerecord-postgresql-adapter '”

Executando um aplicativo Ruby on Rails (RoR) ou código Ruby que usa a estrutura ActiveRecord, você recebe a mensagem de erro:

Por favor, instale o adaptador postgresql:gem install activerecord-postgresql-adapter

Tentando correr:

gem install activerecord-postgresql-adapter

também falha, deixando você em uma perda.

questionAnswers(9)

yourAnswerToTheQuestion