Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] mojo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by mojo) #3684

Open
notnot opened this issue Oct 17, 2024 · 3 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@notnot
Copy link

notnot commented Oct 17, 2024

Bug description

I tried to install mojo by following the "Get Started with Mojo" page. Installing Magic seems to have worked, but mojo then gives these errors:

(hello-world) jpad@boxob:/.../mojo/hello-world$ magic shell
. "/tmp/pixi_env_dIC.sh"
jpad@boxob:
/.../mojo/hello-world$ . "/tmp/pixi_env_dIC.sh"
(hello-world) jpad@boxob:~/.../mojo/hello-world$ mojo
mojo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by mojo) mojo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by mojo)
mojo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by mojo) mojo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/jpad/prog/mojo/hello-world/.magic/envs/default/bin/../lib/libAsyncRTRuntimeGlobals.so)

I'm on an ubuntu 20.04 system, which should be fine according to (not so recent) system requirements for mojo that i have seen.
Is there a fix? I'm eager to try out this new programming language, so it's annoying to see it fail in this very early stage :(

Steps to reproduce

Just follow the instructions at https://docs.modular.com/mojo/manual/get-started on an unbuntu 20.04 machine.

System information

- What OS did you do install Mojo on ?
Ubuntu 20.04

- Provide version information for Mojo by pasting the output of `mojo -v`
Can't provide the version because mojo returns the 'glibc version not found' error first.

- Provide Magic CLI version by pasting the output of `magic -V` or `magic --version` 
magic 0.3.1 - (based on pixi 0.29.0)

- Optionally, provide more information with `magic info`.
      Pixi version: 0.29.0
          Platform: linux-64
  Virtual packages: __unix=0=0
                  : __linux=5.15.0=0
                  : __glibc=2.31=0
                  : __cuda=12.2=0
                  : __archspec=1=skylake
         Cache dir: /home/jpad/.cache/rattler/cache
      Auth storage: /home/jpad/.rattler/credentials.json
  Config locations: No config files found

Project
------------
              Name: hello-world
           Version: 0.1.0
     Manifest file: /home/jpad/prog/mojo/hello-world/mojoproject.toml
      Last updated: 17-10-2024 01:01:09

Environments
------------
       Environment: default
          Features: default
          Channels: conda-forge, https://conda.modular.com/max
  Dependency count: 1
      Dependencies: max
  Target platforms: linux-64
@notnot notnot added bug Something isn't working mojo-repo Tag all issues with this label labels Oct 17, 2024
@hermanthotan
Copy link

hermanthotan commented Oct 24, 2024

I also encounter the same issue
sudo apt update
sudo apt upgrade libc6

still not working using windows WSL Ubuntu

@notnot
Copy link
Author

notnot commented Oct 24, 2024

Solved by upgrading to Ubuntu 22.04, but ideally it should work on 20.04 as well, I’m still a proponent of that as I know there are still many older machines around…

@hermanthotan
Copy link

I have un-install my old ubuntu and install Ubuntu 20.04.06 LTS from Windows Store, still showing the same error
image

mojo --version
mojo which

throw the above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants