amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Package Request] - geos

Open stangelandcl opened this issue 2 years ago • 5 comments

What package is missing from Amazon Linux 2023? Please describe and include package name. geos and geos-devel. C/C++ port of JTS for manipulating geometric shapes particularly for GIS. https://libgeos.org

Is this an update to existing package or new package request? new package request

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. It is available in Fedora. https://packages.fedoraproject.org/pkgs/geos/geos-devel/ https://packages.fedoraproject.org/pkgs/geos/geos/

Any additional information you'd like to include. (use-cases, etc) It is a commonly used library for manipulating geographic shapes. It is a dependency of Python's shapely, R's sf libraries, and Postgres' PostGIS.

stangelandcl avatar Jun 10 '23 13:06 stangelandcl

+1

OpenSourceable avatar Jan 17 '24 22:01 OpenSourceable

+1

I am also looking for the postgis packages.

-- postgis33_15-3.3.3* -- postgis33_15-utils-3.3.3*

Please keep us updated with status.

Thanks,

Raju-perumal avatar Jun 12 '24 22:06 Raju-perumal

You might be best to create a separate issue about that @Raju-perumal

rooby avatar Jun 13 '24 05:06 rooby

Yes Created one : https://github.com/amazonlinux/amazon-linux-2023/issues/730

Raju-perumal avatar Jun 13 '24 17:06 Raju-perumal

Is there any progress on this? GEOS is VERY popular and its absence in Amazon Linux dnf requires either inconvenient workarounds or custom AMI setup, which in both cases end up costing a lot of time and effort for customers, and this could be easily solved and save a lot of resources if this widely used package was available in the AL2023 package repository

januszm avatar Sep 28 '24 19:09 januszm

The solution is just not to use Amazon Linux 2023.

acrolink avatar Dec 05 '24 09:12 acrolink

That's not a solution. One way is to compile the version of geos that you need for AL2023. Package as zip or tar.gz and store on s3, then pull it with aws a3 command line tool that is available on each AL and unpack. It's fast but obviously it'd be better if it came in a form of an rpm package avaliable via yum/dnf

januszm avatar Dec 05 '24 09:12 januszm

It seems it will take me 3-4 hours to install this thing with all the prerequisites, instead of 5 seconds it could have taken in Ubuntu. I could have set up a fresh Ubuntu machine in that time with Postgis. So for me, no more Amazon Linux, neither 2023 nor 2030.

acrolink avatar Dec 05 '24 10:12 acrolink

The solution is just not to use Amazon Linux 2023.

This might have been a reasonable comment in other contexts, but not as a comment on the Amazon Linux 2023 repository. It's not helpful or constructive here. Take it elsewhere.

ThrawnCA avatar Dec 05 '24 22:12 ThrawnCA

@acrolink definitely not 3-4 hours, and you only need to do it once for the geos version of your choice. SSH to one of your running AL2023 servers, download GEOS source from https://libgeos.org/usage/download/ and compile and make install to a subdirectory. Compress that subdirectory (e.g. tar cjf) and upload to an S3 bucket.

Then add this to .ebextensions if you're using Elastic Beanstalk, or to your own deployment script where you would normally put yum/dnf install geos geos-devel

commands:
  install_geos:
    command: |
      aws s3 cp s3://YOUR_S3_BUCKET/geos.tar.bz2 geos.tar.bz2
      tar xfo geos.tar.bz2 -C /usr/

and voila. The actual side benefit of this solution is that your server no longer depends on an external server such as fedora or other rpm source. But yes, still I would like to see geos and geos-devel packages as part of Amazon Linux packages repository.

januszm avatar Dec 06 '24 10:12 januszm

@januszm Thank you. I actually needed geos to install postgis. But I believe same method you had suggested should also work. Interesting to know if postgis can be enabled easily in AWS Aurora PostgreSQL database instances.

acrolink avatar Dec 06 '24 11:12 acrolink

https://aws.amazon.com/about-aws/whats-new/2021/10/amazon-aurora-postgresql-supports-postgis/

januszm avatar Dec 06 '24 12:12 januszm

@januszm Thank you. How about future package update ?

So we need to check periodically, compile , tar ball, upload S3 .. etc.,

Raju-perumal avatar Dec 07 '24 08:12 Raju-perumal

Depends on your needs, I do it once a year

januszm avatar Dec 07 '24 19:12 januszm

I think it all comes down to the need to use Amazon Linux 2023 or not. So surely varies across needs, applications and the needed eco-system around.

acrolink avatar Dec 07 '24 19:12 acrolink