To start, it is worth noting that I am very new to snapcraft. I am trying to snapping an app that used influxdb 2.7 as a database. After struggling to get influxdb to build with snapcraft, I ended up building it locally and using the dump plugin to add the binary to my snap. Here is my snapcraft.yaml:
base: core20
confinement: devmode
parts:
influxdb:
plugin: dump
source: .
source-subdir: bin
apps:
influxdb:
command: influxd
The snap successfully builds and installs, but fails to run, giving the error message:
/snap/firmware/x1/influxd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/firmware/x1/influxd)
/snap/firmware/x1/influxd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/firmware/x1/influxd)
/snap/firmware/x1/influxd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/firmware/x1/influxd)
I’ll also note that app runs fine outside of the snap.
I am on Ubuntu 22.04. Running ldd --version in the command line outputs
ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35
I have also tried using core18 and core22. core18 gives a similar error (with slightly different paths), and core22 fails to build.
Any help solving this issue would be greatly appreciated. Thanks in advance for any advice.