One poster on the mailing list suggested the following fix: ( BUG #15768: Removed rpms and now require /etc/redhat-release) "Amazon Linux support was removed years ago actually. I found some details on the PostgreSQL mailing list: The issue was introduced last week around to make sure the operating system is an actual Red Hat release (which Amazon Linux is not). I have the same problem with PostgreSQL 10 for a Django 2.1 project on AWS Elastic Beanstalk. Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Once you enable this extra, you'll then see many packages for PostgreSQL 10 available through yum that can be installed normally: $ yum list postgresql* To enable installation: $ sudo amazon-linux-extras enable postgresql10 I'm using Amazon Linux release 2 (Karoo) reported by cat /etc/system-release. PostgreSQL 11 is not yet available from Amazon but PostgreSQL 10 is. PRETTY_NAME="Amazon Linux AMI etc]$ cat /etc/system-release Requirements.txt etc]$ cat /etc/os-release Platform: Python 3.6 running on 64bit Amazon Linux/2.8.2 Nobody else seems to have this problem? I also don't seem to have the coveted amazon-linux-extras for some reason? Environment I've tried symlinking /etc/system-release -> /etc/redhat-release with no luck. > Processing Dependency: /etc/redhat-release for package: Įrror: Package: (/pgdg-centos11-11-2.noarch)įrom here I'm stuck. > Package pgdg-redhat-repo.noarch 0:42.0-4 will be installed Marking /var/tmp/yum-root-cQJP_4/ to be installed Loaded plugins: priorities, update-motd, upgrade-helper Next I try adding the repo as I have found in other posts across the internet: etc]$ sudo yum -y install I suppose I'll need to add the repo? Fair enough. Please add the directoryĬontaining pg_config to the $PATH or specify the full executable path with the Pg_config is required to build psycopg2 from source. Writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt' Writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt Writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt Writing pip-egg-info/psycopg2.egg-info/PKG-INFO usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls' It is required to build psycopg2 from source. If I run eb deploy I get the message saying pg_config executable not found. I cannot get Postgres11 to install though it is officially supported with RDS. I'm having a hell of a time deploying my first app to Elastic Beanstalk and could really use some help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |