h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
311 stars 23 forks source link

Linux: GLIBC_2.29 not found. #65

Closed step- closed 3 years ago

step- commented 3 years ago

Hi, I downloaded the pre-build binary for Linux. It seems it needs a specific libc version, so it can't run on my system.

# min
min: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by min)
h3rald commented 3 years ago

Finally found some time to research this a little bit. It looks like when compiling on Linux it does require a specific libc version, unless you statically link musl (see here).

I compiled the executable on my Ubuntu system and... well, unfortunately that means that it would run on a x64 Linux system with GLIBC v2.29 or higher. I am going to leave this issue open for the time being, mainly because I don't have an easy fix at the moment and my free time is kinda limited these days.

What version of GLIBC do you have on your linux system? Did you try to compile min from scratch?

step- commented 3 years ago

Thank you for looking into this. I have GLIBC v2.27. I didn't try to compile min from scratch because I couldn't find instructions about building min. I'm not a min or nim user.

h3rald commented 3 years ago

Fixed this by providing a cross compiled Linux binary statically linking libmusl. In this way it won't even look for libc.

(See also #63 for some problems I had with musl, now all fixed)

step- commented 3 years ago

Now it works for me. Thank you!