Ruby/PgSQL error on Rails start : cannot load such file — pg_ext (LoadError)

后端 未结 5 1848
死守一世寂寞
死守一世寂寞 2020-12-19 05:04

I\'m new to Ruby (coming from a Java background) and was given access to a RoR project from a Git repository. I was able to get Ruby built with rbenv and Postgres installed

5条回答
  •  清歌不尽
    2020-12-19 05:48

    If during the installation of the gem the pq installation is not in path so it could not be found by the gem. Than the gem would not work correct.

    • Check the path (try to start psql from commandline).
    • uninstall the pg-gem: gem unistall pg
    • and reinstall it: bundle install or gem install pg

提交回复
热议问题