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

后端 未结 5 1840
死守一世寂寞
死守一世寂寞 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:23

    I'm curious if you installed the pg gem before or after installing postgres via brew?

    If pg was installed before you installed Postgres via brew, you may need to remove it and install it again so that it's compiled against your current version of Postgres.

    Side note: postgresapp is a much better alternative to installing postgres via homebrew: http://postgresapp.com/

提交回复
热议问题