cli icon indicating copy to clipboard operation
cli copied to clipboard

version `GLIBC_2.32' not found

Open Olyno opened this issue 3 years ago • 8 comments

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:

  1. Use latest version
  2. 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

/

Olyno avatar Jul 11 '23 17:07 Olyno

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.

sweatybridge avatar Jul 12 '23 01:07 sweatybridge

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

reubendrummond avatar Jul 12 '23 04:07 reubendrummond

Could you share with us the full error logs from bitbucket here? Including the command you used to run and npx supabase -v

sweatybridge avatar Jul 12 '23 04:07 sweatybridge

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)

reubendrummond avatar Jul 12 '23 05:07 reubendrummond

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

sweatybridge avatar Jul 12 '23 05:07 sweatybridge

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)


AhmadBShaik avatar Jul 12 '23 05:07 AhmadBShaik

Removing the location flag worked, thanks for your help @sweatybridge. Any ideas why that would have caused it to fail?

reubendrummond avatar Jul 12 '23 05:07 reubendrummond

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

sweatybridge avatar Jul 12 '23 05:07 sweatybridge