Facing issue on "bundle exec rails console" command


#1

Hi ,

I have try to upgrade ruby software 2.5.1.

I’m having issue , while executing the following command “bundle exec rails console”.

I’m getting error like "Cannot load such a file— 2.5/pg_ext "

Please help me to resolve this issue .


#2

Hi @Dayalan,

It seems like a corrupted installation of the pg gem. In this case, I would suggest to re-install it:

  1. Uninstall it with the following command into your Command Prompt:
gem uninstall pg
  1. Install it again with:
gem install pg

Good luck!