sudo apt-get install libpq-devsudo gem install pg -v '0.21.0' 转载于:https://www.cnblogs.com/Alex0111/p/7551341.html