Can't find the 'libpq-fe.h header when trying to install pg gem

前端 未结 30 1963
深忆病人
深忆病人 2020-11-22 07:47

I am using the Ruby on Rails 3.1 pre version. I like to use PostgreSQL, but the problem is installing the pg gem. It gives me the following error:



        
30条回答
  •  眼角桃花
    2020-11-22 08:33

    I am running Postgres.app on a Mac and I had to

    export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
    

    first. Then

    bundle install
    

    worked for me.

提交回复
热议问题