ruby用pgsql做orm的时候,需要安装ruby-pg库,默认编译安装会提示缺少xx头文件
max下,我用的傻瓜式pgsql.app
gem install pg -- --with-pg-config='/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config'
debian下
sudo apt-get install postgresql-server-dev-all