jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: model can't be loaded on linux mint 20.3 (version `GLIBC_2.32' not found)

Open kristaller486 opened this issue 1 year ago • 2 comments

Describe the bug Model can't be loaded because nitro won't started

To Reproduce I just tried loading the model on Linux Mint 20.3

Expected behavior Model is loaded

Desktop (please complete the following information):

  • OS: Linux Mint 20.3 x86_64
  • GPU: GT740
  • RAM: 16GB
  • CPU: i5-4460
  • Version 0.4.3

Additional context traceback:

Start requesting to kill Nitro...
Nitro is killed
Starting Nitro subprocess...
stdout: Selected GPU: 0

subprocess error:./nitro: error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory

stderr: ./nitro: error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory

stdout: nitro_linux_amd64_cuda encountered an error, attempting to run nitro_linux_amd64...

subprocess error:./nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./nitro)
./nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by ./nitro)
./nitro: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./nitro)
./nitro: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./nitro)
./nitro: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./nitro)

stderr: ./nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./nitro)
./nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by ./nitro)
./nitro: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./nitro)
./nitro: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./nitro)
./nitro: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./nitro)

child process exited with code 1
error:  child process exited with code 1

kristaller486 avatar Dec 25 '23 09:12 kristaller486

@hiento09 we might not be able to statically link glibc, we might need to support multiple version build

tikikun avatar Dec 29 '23 03:12 tikikun

Hi @kristaller486 , please try our newest Nightly Build version here to check if this bug is resolved or not. From now we support glibc >= 2.27 (ubuntu 18.04 or higher).

hiento09 avatar Jan 05 '24 02:01 hiento09

@hiento09, sorry for the late reply, I didn't have access to my linux pc. I have now checked 0.4.3-135 and it still doesn't work.

Starting Nitro subprocess...
subprocess error:/home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro)
/home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro)
/home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro)

stderr: /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro)
/home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro)
/home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /home/developer/jan/extensions/@janhq/inference-nitro-extension/dist/bin/linux-cpu/nitro)

kristaller486 avatar Jan 09 '24 08:01 kristaller486

@kristaller486 , can you follow this instruction to install g++11 since it's requirements for linux https://jan.ai/guides/troubleshooting/gpu-not-used/#specific-requirements-for-linux

hiento09 avatar Jan 09 '24 08:01 hiento09

I will put this requirements document somewhere to help other users less confuse

hiento09 avatar Jan 09 '24 08:01 hiento09

Thanks for your help, it's all working now

kristaller486 avatar Jan 09 '24 08:01 kristaller486