Cannot install pg gem in Mavericks with Postgres.app

后端 未结 8 1587
灰色年华
灰色年华 2020-12-02 04:16

I am trying to install the pg gem for use with Postgres.app on my local machine. I am running Mavericks.

Postgres.app is installed and running fine, but I cannot get

相关标签:
8条回答
  • 2020-12-02 04:53

    adding the postgress bin dir to the path also does the trick. just add the bin to the pat like this. with recent installs the latest symbolic link makes sure that this path should be 'stable' for future version upgrades.

    export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
    
    0 讨论(0)
  • 2020-12-02 04:59

    I was able to install pg with this command

        gem install pg -- --with-pg-config=/Library/PostgreSQL/9.3/bin/pg_config
    

    I found my path by running

        sudo find / -name "pg_config"
    

    and I Successfully installed pg-0.17.1

    0 讨论(0)
提交回复
热议问题