-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] bun: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by bun) #255
Comments
Same issue on Debian, and a similar one on Alpine:
Installed using the YOLO method: It seems the provided binaries are dynamically linked against a specific glibc version. The problem for @KaKi87 is likely that they have a different version of glibc. The problem in my case in that alpine uses musl instead of glibc. Potential fixes for this:
Edit: I'd mixed up results from Debian and Alpine. |
@KaKi87 Same issue on WSL using Ubuntu_18.04 distribution which has glibc 2.27. Can check version of glibc by running |
@KaKi87 It also happens when installing using the recommended method Since it has Glibc 2.24:
And the minimum compatible is 2.25:
You could try to install one of the compatible versions using apt, assuming you have administrative privileges:
However, it depends on the versions available in the repositories for Linux Mint. I hope this can be of help. |
I have v2.27. |
I would also like statically linked binaries with musl. I'm not having this specific issue but attempting to build bun from source myself causes a lot of errors on my computer unfortunately. I'd also like to be able to embed bun directly into the linux distro im building which requires statically linked binaries as well. |
RHEL 8 ships glibc 2.28, bun requires 2.29 Big problem here. |
I'm not able to run bun in MX Linux due to this issue. I have v2.28 of GLIBC and it seems I require v2.29. I'm hesitant to go down the rabbit hole of trying to upgrade GLIBC because I feel like last time I did that it tried to recompile every package I had and my system stopped working entirely. I'm on board with the static linking approach, in other words! |
Spent all evening trying to figure out how the heck to build bun from source to try to understand/fix this problem or offer up a solution. After a few frustrating hours all I had was a finished build of the custom version of zig required to build bun (which required installing an old version of LLVM). Trying to Wish there were some docs around how to build the project in the "right way" so I could help to debug this. I'm just too frustrated to work any more on this. |
Really hope musl support get some attraction, all our server are alpine, BTW deno don't support musl too denoland/deno#3711 , musl support can make adoption way easier not just for alpine but also all other disto with different glibc versions, without musl support, bun just ban a lot use-cases. |
I'm also running libc 2.28 on my VPS and I'm physically unable to upgrade due to my provider's limitations... So, a version of bun that runs on 2.28 or lower would be nice. I've been looking for workarounds. Tried compiling newer glibc, but my kernel is too old :(. Given what @aardvarkk said, I guess attempting to recompile bun itself would be a massive rabbit hole... +1 for static binaries. |
For anyone hitting this issue: don't try to upgrade Trying to build |
Due to being dynamically linked, it would need to be built with the exact same glibc you have.
Installing by building from source should work.
|
@WhyNotHugo If you can figure out and write up the process to build from source, please let me know! I tried for quite a while and it wasn't at all straightforward as far as I was concerned. |
i try to install a newer version of glibc on a specified path /data/vendor/glibc-2.36; |
Fixed in Bun v0.3.0 Please comment if you run into an issue like this again. We will need to watch for symbols from too-new versions of glibc going forward. |
升级make版本到4.3 |
This comment was marked as abuse.
This comment was marked as abuse.
`#!/bin/bash #This entrypoint is to fix nokogiri archtecture problem in Apple Silicon cd /var/www/myapp rails s -p 3000 -b '0.0.0.0' -e development I have added this entrypoint in my docker-compose. Worked for me! |
This is still an issue in v0.6.3: > ldd bun
/lib64/ld-linux-x86-64.so.2 (0x7f9a9e1c9000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f9a9e1c9000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f9a9e1c9000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f9a9e1c9000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f9a9e1c9000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by bun)
Error relocating bun: __memmove_chk: symbol not found
Error relocating bun: __fread_chk: symbol not found
Error relocating bun: __strcpy_chk: symbol not found
Error relocating bun: __memcpy_chk: symbol not found
Error relocating bun: __strcat_chk: symbol not found
Error relocating bun: __strncpy_chk: symbol not found
Error relocating bun: backtrace: symbol not found
Error relocating bun: __snprintf_chk: symbol not found
Error relocating bun: __sprintf_chk: symbol not found
Error relocating bun: gnu_dev_makedev: symbol not found
Error relocating bun: gnu_dev_major: symbol not found
Error relocating bun: gnu_dev_minor: symbol not found
Error relocating bun: __cxa_thread_atexit_impl: symbol not found
Error relocating bun: __printf_chk: symbol not found
Error relocating bun: __vsnprintf_chk: symbol not found
Error relocating bun: __fprintf_chk: symbol not found
Error relocating bun: __longjmp_chk: symbol not found
Error relocating bun: __vfprintf_chk: symbol not found
Error relocating bun: __strftime_l: symbol not found
Error relocating bun: __register_atfork: symbol not found
Error relocating bun: __cxa_thread_atexit_impl: symbol not found
Error relocating bun: unsupported relocation type 37
Error relocating bun: unsupported relocation type 37
Error relocating bun: unsupported relocation type 37
> ./bun
zsh: no such file or directory: ./bun Note that the
Huh? Are you sure you're not replying to the wrong issue? |
Got this error too on CentOS 7.x |
got the same error. environment
|
I bought and downloaded the version from itch.io, running into the same error on Linux Mint 21.2, requiring GLIBC_2.36 but I have only 2.35 available |
apt update && echo "deb http://cz.archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install unzip g++ gcc g++-11 -y && apt install libc6 -y && sed -i '/deb http://cz.archive.ubuntu.com/ubuntu jammy main/d' /etc/apt/sources.list && apt update |
Hello,
I'm experiencing the following error on Linux Mint 19.3 :
Thanks
The text was updated successfully, but these errors were encountered: