Glibc 2.28 support

I am trying to install nightly versions of max/mojo via pip and when running $> mojo I get:

mojo/mojo-gpu-puzzles/.venv/bin/mojo: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by mojo/mojo-gpu-puzzles/.venv/bin/mojo)
...
...

I am running on Rocky Linux release 8.10 which has glibc 2.28:

$ uname -a 
Linux 10-40-26-137 6.6.43-4.el8.x86_64 #1 SMP Fri Aug 23 15:05:45 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ ldd --version 
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.

as upgrading glibc is not an option for me, any chance that 2.28 can be supported?

Could you try wtihpixi instead?

  • Step 1: Install pixi

    curl -fsSL https://pixi.sh/install.sh | sh
    
  • Step 2: Initialize a project

    pixi init myproj \
      -c https://conda.modular.com/max-nightly/ -c conda-forge \
      && cd myproj
    
  • Step 3: Add the following to the pixi.toml

    [system-requirements]
    linux = "4.4" 
    libc = { family = "glibc", version = 2.28 }
    
  • Step 4: pixi add modular

@Ehsan I have a similar issue, running on Ubuntu 20.04.6 LTS, with Linux 5.15.0-46-generic and glibc 2.31. I am following the GPU intro tutorial.

I added the following to my pixi.toml:

[system-requirements]
linux = "5.15"
libc = { family = "glibc", version = "2.31" }

and ran pixi add modular, and then pixi run mojo --version.

I get the following errors when runningpixi run mojo --version :

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found 
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found

and other related glibc version issues. How can I resolve this? Upgrading glibc is not an option for me.

The minimum required Ubuntu version is 22.04.

Are you concidering adding support for Ubuntu 20.04.6 LTS (glibc 2.31)? This would let me and colleagues migrate to Mojo.

Not officially but have you tried the proposed changes to pixi yet?

Yes, I get the same errors as @avb03 unfortunately.

Why cant you use a container? Modular even provide one. Just trying to understand how ‘dependency on ’ would derail anything?