Gem::LoadError: can’t activate pg (~> 0.18), already activated pg-1.0.0 [duplicate] April 8, 2023 by Tarik looks like pg 1.0 is not compatible with rails 5.1.4 at the moment. gem 'pg', '~> 0.18' 0.18 worked for me.