Error creating database in postgres using Ruby On Rails in windows 7

Asked

Viewed 94 times

0

Running the command on the terminal to create the Rails project database in Postgres:

$ rails db:create

There’s this bug that I haven’t been able to fix in a while:

rails aborted!
LoadError: cannot load such file -- 2.5/pg_ext

Caused by:
LoadError: cannot load such file -- pg_ext

1 answer

0

Probably you did not install the module for postgresql, to install use:

gem install --pg
  • Guilherme, the module for postgres is already installed. I installed the Gem pg required in the project.. But still the problem remains

  • @Ndongalagarcia Installed the rails on Cygwin?

  • No Guilherme, I did not install Rails on Cygwin ... So in this case I should install Rails from Cygwin @Guilherme Nascimento ??

  • @Ndongalagarcia I believe that yes, since it is using the RVM, it is not even?

  • Yes, I’m already using RVM @Guilhermenascimento ...

  • then installs the ruby and the gem by RVM. I don’t remember if this is the case, it’s been a while since I worked with this.

  • Okay @Guilherme, I’ll do the installation and then I’ll come back and say something.. Thanks for your support

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.