- Newest
- Most votes
- Most comments
I just ran into this myself, it turns out the package you need is called postgresql-devel on RHEL systems. Try:
sudo yum install postgresql-devel
I agree this should work out of the box. Until we are actually able to set our own base images, or AWS fixes this, though, that should suffice.
answered 9 years ago
As of February 27, 2018, the above solution is not working on Amazon Linux Cloud9. Not sure whether Amazon updated its AMI so that it no longer functions or what.
The pg_config file in /usr/bin references postgresql-9.6, but all of the components necessary to compile the pg gem for pg-9.6 are not installed when booting up the AMI for the first time. What got it working for me was the following:
sudo yum install postgresql96 postgresql96-server postgresql96-libs postgresql96-contrib postgresql96-devel
answered 8 years ago
You can follow the instructions on this article: https://medium.com/@floodfx/setting-up-postgres-on-cloud9-ide-720e5b879154
sudo yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs
sudo service postgresql initdb
answered 8 years ago

This answer worked for me when needing to install the Python package psycopg2 to a Cloud9 instance and originally receiving an error indicating pg_config could not be found.