avalanche-cli icon indicating copy to clipboard operation
avalanche-cli copied to clipboard

[Bug]: GLIBC Version Compatibility Issue: Avalanche CLI Fails to Run Due to Missing GLIBC_2.32, GLIBC_2.33, and GLIBC_2.34 on Linux

Open sardenasrihari opened this issue 1 year ago • 3 comments

Describe the bug

The Avalanche CLI fails to run due to missing GLIBC versions. After installation, running any avalanche command returns an error indicating that required GLIBC versions (GLIBC_2.32, GLIBC_2.33, GLIBC_2.34) are not found on my system.

To Reproduce

Run the following command to install the Avalanche CLI:

curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-cli/main/scripts/install.sh | sh -s

After installation, update the PATH variable:

export PATH=~/bin:$PATH Run avalanche --help or avalanche --version to verify the installation.

Expected behavior I expected the avalanche command to display the help or version information without errors, indicating a successful installation and working environment.

Screenshots Screenshot from 2024-11-09 13-58-13

Logs Below are the error logs displayed when running avalanche --help or avalanche --version:

avalanche: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by avalanche) avalanche: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by avalanche) avalanche: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by avalanche)

Operating System OS: Linux (Ubuntu) Device: HP 250 G8 Notebook PC

Additional context

It appears that the Avalanche CLI requires GLIBC versions that are not installed on my system, which could suggest a compatibility issue or the need for an alternative installation method. Possible workarounds like upgrading GLIBC directly could be risky for my system’s stability. I'd appreciate guidance on whether a Dockerized solution, static binary, or alternative approach might be available.

sardenasrihari avatar Nov 09 '24 08:11 sardenasrihari

Hi, I am experiencing the same issue as described in this bug report regarding the missing GLIBC versions when trying to run the Avalanche CLI. I followed the steps outlined by @sardenasrihari and encountered the same errors.

System Information:

  • OS: Ubuntu 20.04 LTS

  • GLIBC Version: 2.31 (currently installed)

Additional Context: I am unable to upgrade my Ubuntu version at the moment, and I would prefer not to risk system stability by upgrading GLIBC alone. Any suggestions or guidance on alternative installation methods or potential workarounds would be greatly appreciated.

Thank you!

esrasiler avatar Nov 15 '24 13:11 esrasiler

Hi, I found that Ubuntu 20.04 is not compatible with latest stable avalanche CLI, due to the outdated GLIBC version that you have pointed out above. I upgrade OS to Ubuntu 22.04, all the installation is going well. However, upgrade OS is a big change and might be non-backward compatible. Is there any better solution?

0xbarchitect avatar Dec 24 '24 04:12 0xbarchitect

Hi Team, I am running this same architecture in a 22.04 Ubuntu VM and getting the same compatibilty error. For me the error shows that required is v2.38 for glibc and my current version is 2.35. I tried to manually install 2.38, change paths but then get a segementation core error. Tried building it from source. Same error. Please help or advise what linux distro would be compatible.

RE-edit Config or Modification solved the issue: I was running on a VM , deleted the VM instance and built a new VM with 24.04 and it worked as it comes with glibc 2.39 and current avalanche-cli supports 2.38 minimum version.

Thanks

monk07-01 avatar Mar 19 '25 00:03 monk07-01