-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Is it possible to run on ubuntu 18.04? #14387
-
I know this is a really old distribution, but let's say I can only run on this version of ubuntu.
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
I try to run with the latest prebuilt "llama-b5757-bin-ubuntu-x64.zip" and get this error
./llama-cli: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./llama-cli)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./llama-cli)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./llama-cli)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./llama-cli)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ./llama-cli)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./llama-cli)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by ./llama-cli)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./llama-cli)
./llama-cli: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by libllama.so)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by libllama.so)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by libllama.so)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by libllama.so)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by libllama.so)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by libggml.so)
./llama-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by libggml.so)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by libggml.so)
./llama-cli: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by libggml-base.so)
I know this mean my libc version is too old, but is there any workaround ? Has any one successfully run this on ubuntu 18.04 ?
Beta Was this translation helpful? Give feedback.
All reactions
Yes it is possible, but super tedious. It's much better to just build it yourself, or upgrade the OS.
(Or maybe utilize a virtual machine, or something...)
If you still want to do it, this is the method I've used.
(And yeah I'd be interested to hear if anyone has a better way!)
- Copy over all the libraries that the binary needs (you need to get them from a new distro, somehow).
- Use the LD_LIBRARY_PATH environment variable to point to the directory where they are located.
- Launch the binary with the new version of ld-linux-x86-64.so.2.
For example, if you have the libs in $HOME/tmp/newlibs you can try something like:
LD_LIBRARY_PATH=$HOME/tmp/newlibs $HOME/tmp/newlibs/ld-linux-x86-64.so.2 ...
Replies: 1 comment 1 reply
-
Yes it is possible, but super tedious. It's much better to just build it yourself, or upgrade the OS.
(Or maybe utilize a virtual machine, or something...)
If you still want to do it, this is the method I've used.
(And yeah I'd be interested to hear if anyone has a better way!)
- Copy over all the libraries that the binary needs (you need to get them from a new distro, somehow).
- Use the LD_LIBRARY_PATH environment variable to point to the directory where they are located.
- Launch the binary with the new version of ld-linux-x86-64.so.2.
For example, if you have the libs in $HOME/tmp/newlibs you can try something like:
LD_LIBRARY_PATH=$HOME/tmp/newlibs $HOME/tmp/newlibs/ld-linux-x86-64.so.2 /path/to/llama-cli --help
Most likely it will result in a segfault, because some lib was missing.
You can check them with ldd or by setting LD_TRACE_LOADED_OBJECTS=1.
Good luck!
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you, I ended up compile it by my self.
Beta Was this translation helpful? Give feedback.