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

前端 未结 30 2131
深忆病人
深忆病人 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:30

    On Debian 7.0, 64-bit (Wheezy), just run:

    sudo apt-get install libpq-dev
    

    After you successfully installed libpq-dev, run:

    bundle install
    

提交回复
热议问题