- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
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
Thanks very much for posting the instructions. I'd like to ask if anyone knows how to start the postgresql service after installing postgresql on AWS Cloud 9.
I have tried to run
sudo service postgresql start
without much success.
Similarly, I've also tried to run the following without much success
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service
Any assistance would be much appreciated!
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
Contenus pertinents
- demandé il y a 6 mois
- Réponse acceptéedemandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
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.