Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging repo installation failure for Amazon Linux 2 AMI #871

Open
hanefi opened this issue Dec 9, 2021 · 3 comments
Open

Packaging repo installation failure for Amazon Linux 2 AMI #871

hanefi opened this issue Dec 9, 2021 · 3 comments
Assignees

Comments

@hanefi
Copy link
Member

hanefi commented Dec 9, 2021

We had a community user reported failure from Anand Triphati on slack.

https://citus-public.slack.com/archives/C0XRHT1KJ/p1639042852055100

Original Message

Hi all, I am installing pg_cron on my Postgres 10 running Amazon Linux 2 AMI and I am getting this error

Detected operating system as amzn/2.
Unfortunately, your operating system distribution and version are not supported by this script.

Please contact us via https://www.citusdata.com/about/contact_us with any issues.
While firing the below command:

curl https://install.citusdata.com/community/rpm.sh | sudo bash

Proposed solution

Install the packaging repo for RHEL7 as the Amazon Linux 2 is based on that distro.

curl https://install.citusdata.com/community/rpm.sh | sudo os=rhel dist=7 bash
@anandtripathi5
Copy link

anandtripathi5 commented Dec 9, 2021

It seems the rpm.sh file only works on postgres14. Now I'm getting the below error
image

Is it possible to install pg_cron for postgres-10
@hanefi @gurkanindibay

@hanefi
Copy link
Member Author

hanefi commented Dec 9, 2021

Yes, it is possible.

However you have issues when installing PGDG packaging repository for some reason. Please go over the official docs for installing PostgreSQL repositories here: https://www.postgresql.org/download/linux/redhat/

@gurkanindibay
Copy link
Contributor

Hi @anandtripathi5
you need to install postgres 10 first. Could you install postgresql 10 manually using the postgres installation link @hanefi mentioned?
https://www.postgresql.org/download/linux/redhat/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants