Open tlaguz opened 2 years ago
Just found this searching. I can confirm we have the same issue on Ubuntu.
yugabyte=# create extension postgis;
ERROR: could not load library "/usr/yugabyte-2.14.0.0/postgres/lib/postgis-3.so": /usr/yugabyte-2.14.0.0/linuxbrew/lib/libm.so.6: version `GLIBC_2.29' not found (required by /usr/yugabyte-2.14.0.0/postgres/lib/postgis-3.so)
yugabyte=#
Ubuntu 22.04 is running a much newer version of glibc
ldd (Ubuntu GLIBC 2.35-0ubuntu3) 2.35
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
cc @svarnau ?
Here are the steps that were successful for another user:
Requiring a downgrade to your OS isn't really a workaround
Requiring a downgrade to your OS isn't really a workaround
Sure. But this is only in a staging environment to build the extension with the same GLIBC than the one used by YugabyteDB.
I found a workaround as well for Rocky 8.8 in #17747 where you don't have to deal with downgrading glibc. I don't know if it would work for ubuntu, but might be worth a shot or at least a similar pattern to attempt.
Jira Link: DB-2997
Description
Yugabyte version: 2.15.0.1
I'm trying to install postgis on yugabyte running inside Debian 11 container. It turns out that postgis must be compiled to work with postgresql 11 in order to work with yugabyte. The only version available in postgresql repositories is 3.2.1.
1st problem: #11487
This can be easily fixed by removing pgaudit check that's causing the error:
2nd problem
It seems that postgis 3.2.1 is not compatible with libc bundled with yugabyte:
I haven't found a workaround.
Dockerfile