version `GLIBC_2.32' not found
Describe the bug
It seems that Supabase CLI no longer supports older versions of Debian. I'm using Deepin OS based on Debian 10 and after updating the CLI, I get the following errors:
supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by supabase)
supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by supabase)
To Reproduce Steps to reproduce the behavior:
- Use latest version
- Error
Expected behavior
Could be awesome if we still can support "old" OS.
Screenshots
/
Desktop (please complete the following information):
- OS: Deepin (Debian 10)
- Browser (if applicable): /
- Version of CLI 1.77.6
- Version of supabase-js (if applicable): /
- Version of Node.js (if applicable): 16.20.1
Additional context
/
Thank you for raising this issue. I've enabled static linking in cli v1.77.8 so it doesn't depend on glibc at runtime.
Encountered this error message in Bitbucket pipeline. Updated download script to
npm install --location=global [email protected]
and error still exists. Can any assistance be offerred @sweatybridge? Thanks
Could you share with us the full error logs from bitbucket here? Including the command you used to run and npx supabase -v
No worries.
pipeline config:
image: node:16.16.0
pipelines:
branches:
development:
- step:
name: Apply DB migrations in development
script:
- export SUPABASE_ACCESS_TOKEN=$SUPABASE_DEVELOPMENT_ACCESS_TOKEN
- export SUPABASE_DB_PASSWORD=$SUPABASE_DEVELOPMENT_DB_PASSWORD
- npm install --location=global [email protected]
- npx supabase -v
- npx supabase link --project-ref $SUPABASE_DEVELOPMENT_PROJECT_ID
- npx supabase db push
err:
npx supabase -v
npm WARN exec The following package was not found and will be installed: supabase
supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by supabase)
supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by supabase)
It's likely that npm install gave up. Could you try without --location flag?
- export SUPABASE_ACCESS_TOKEN=$SUPABASE_DEVELOPMENT_ACCESS_TOKEN
- export SUPABASE_DB_PASSWORD=$SUPABASE_DEVELOPMENT_DB_PASSWORD
- npm install [email protected]
- npx supabase -v
- npx supabase link --project-ref $SUPABASE_DEVELOPMENT_PROJECT_ID
- npx supabase db push
Experiencing the same issue.
Dev Environment
Node version: 18.16.1 OS: Debian 11 bullseye
Error
$ npm install --location=global [email protected]
added 23 packages in 9s
4 packages are looking for funding
run `npm fund` for details
$ npx supabase -v
supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by supabase)
supabase: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by supabase)
Removing the location flag worked, thanks for your help @sweatybridge. Any ideas why that would have caused it to fail?
Global installation via npm/yarn isn't supported atm because the binary cannot be correctly downloaded to node_modules via postinstall script. If you need to install globally, I'd suggest using one of the system package managers, such as homebrew or scoop, since they are designed for this purpose.
We added support for local installation via npm because it allows you to pin the version of CLI in package.json. This ensures consistent setup between local machine and CI pipelines. Perhaps this is closer to what you want?
npm i --save-dev [email protected]
After committing changes to package.json, update CI pipeline like below
- npm ci
- npx supabase -v