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

https://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header-when-trying-to-install-pg-gem

 

  • For Ubuntu systems: sudo apt-get install libpq-dev
  • On Red Hat Linux (RHEL) systems: yum install postgresql-devel
  • For Mac Homebrewbrew install postgresql
  • For Mac MacPorts PostgreSQL: gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
  • For OpenSusezypper in postgresql-devel
posted on 2017-09-22 00:18  c3tc3tc3t  阅读(343)  评论(0)    收藏  举报