Why can't the pg gem be installed in AWS Elastic Beanstalk?
In .ebextensions/packages.config
:
packages: yum: postgresql-devel: []
This will ensure any new instances will have this lib installed
add
packages: yum: postgresql93-devel: []
In .ebextensions/packages.config
packages: yum: postgresql-devel: []
The important thing to note is that you need to set postgresql-devel
to match the lib for your postgresql version. e.g., if you have postgresql 9.4.5 you need to install a postgresql-develXX.
Using yum list
you will be able to identify the correct lib.