gpt4all
gpt4all copied to clipboard
Question: Unable to open/run the application post installation on Ubuntu 20.04
Issue you'd like to raise.
I was able to successfully install the application on my Ubuntu pc. However, I am unable to run the application from my desktop. When I click on the GPT4All.desktop nothing happens.
Suggestion:
No response
I have not tried installing it on Linux, but one thing you could do is open a terminal and run something like:
xdg-open path/to/the-desktop-file/GPT4All.desktop
No idea if that helps, but might give some output on the terminal to give you a clue what went wrong.
xdg-open GPT4All.desktop cmd opens the file in a text editor.
Just did a quick test myself in a Linux Mint virtual machine (Linux Mint is based on Ubuntu, although this one is based on 22.04).
That's definitely not what should happen. In my test I got the GUI running and saw some log messages.
-
How exactly did you install the application?
-
Another thing to try: now that you have the
.desktop
file open, copy and run in a terminal what you have on the lineExec="..."
; e.g. here it's something like/home/<user>/gpt4all/bin/chat
I installed the application by downloading the one click installation file gpt4all-installer-linux.run. It installed fine and created a desktop icon. I tried running /home/
Are you sure you're on the right track with that?
It might be better to include the whole error message to properly troubleshoot before messing around with the system.
When you have "... something something 'GLIBC' ...", that's typically in relation to the GNU libc library, which is a fundamental library of the system.
For example, it might very well be that your system itself is "too old" to run that (not necessarily because it couldn't ever run, but because the program was compiled on a "too new" system).
Here is the full error:
/home/vish/gpt4all/bin/chat
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/chat) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.32' not found (required by /home/vish/gpt4all/bin/../lib/libllmodel.so.0)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/libllama.so) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libglib-2.0.so.0)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /home/vish/gpt4all/bin/../lib/libglib-2.0.so.0) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/libglib-2.0.so.0)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libxkbcommon.so.0) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libgssapi_krb5.so.2)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libdbus-1.so.3) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/libdbus-1.so.3)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libkrb5.so.3) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/libkrb5.so.3)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libk5crypto.so.3) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libkrb5support.so.0)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/libkrb5support.so.0) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libsystemd.so.0)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /home/vish/gpt4all/bin/../lib/libsystemd.so.0) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/libsystemd.so.0)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /home/vish/gpt4all/bin/../lib/liblzma.so.5) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/vish/gpt4all/bin/../lib/liblzma.so.5)
/home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libcap.so.2) /home/vish/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/vish/gpt4all/bin/../lib/libgcrypt.so.20)
While updating the GLIBC_x I get the below error at the end. So I concluded it might the NVIDIA issue
Errors were encountered while processing: nvidia-340
Try:
apt show libc-bin
and you'll see the version number of your GNU libc library. Web search says it's likely v2.31.
On my test VM it's v2.35, so that'd explain why it works here but not on your system.
So assuming that's actually the problem, here are a few ways to address it:
- compile the whole project yourself (or parts of it if you don't need the complete chat interface)
- upgrade the system to 22.04 or newer
- run a virtual machine with a newer Ubuntu; a virtual machine shouldn't really (hopefully) be a problem because it ultimately runs on the CPU. This is probably the easiest way to test whether that's the real issue here.
- get the devs to compile the application they distribute with on an older base system
- run a container with a more up-to-date base system or another way to run with a newer GNU libc (although that'd probably be another rabbit hole, so not recommended)
By the way, I've found this older issue: #385 'Installed on Ubuntu 20.04.6 LTS'
And recently, someone has actually tried to compile it themselves, see the comment here: https://github.com/nomic-ai/gpt4all/issues/385#issuecomment-1550485114, in case that's something you want to try yourself.
Let me try. Thanks
Did you ever figure this out?
I'm getting the same style error and tried to compile myself but getting stuck for instance when compile from the following https://github.com/nomic-ai/gpt4all/blob/main/gpt4all-chat/build_and_run.md this step NOTE: This is for macOS. For Linux it is similar, but you need ming64 for Windows, not the MSVC install
I see no option when setting up the settings for QT and when trying to follow
https://nextgentips.com/2022/03/23/how-to-install-openssl-3-on-ubuntu-20-04/ I just get errors all over the place
Thanks....
root@rob-Zephyrus-S-GX531GS-GX531GS:/home/rob/gpt4all/bin# '/home/rob/gpt4all/bin/chat'
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/chat) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.32' not found (required by /home/rob/gpt4all/bin/../lib/libllmodel.so.0)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/libllama.so) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libglib-2.0.so.0)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /home/rob/gpt4all/bin/../lib/libglib-2.0.so.0) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/libglib-2.0.so.0)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libxkbcommon.so.0) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libgssapi_krb5.so.2)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libdbus-1.so.3) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/libdbus-1.so.3)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libkrb5.so.3) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/libkrb5.so.3)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libk5crypto.so.3) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libkrb5support.so.0)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/libkrb5support.so.0) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libsystemd.so.0)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /home/rob/gpt4all/bin/../lib/libsystemd.so.0) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/libsystemd.so.0)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /home/rob/gpt4all/bin/../lib/liblzma.so.5) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.34' not found (required by /home/rob/gpt4all/bin/../lib/liblzma.so.5)
/home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libcap.so.2) /home/rob/gpt4all/bin/chat: /lib/x86_64-linux-gnu/libc.so.6: version
GLIBC_2.33' not found (required by /home/rob/gpt4all/bin/../lib/libgcrypt.so.20)
root@rob-Zephyrus-S-GX531GS-GX531GS:/home/rob/gpt4all/bin#
If you're having trouble building OpenSSL 3, maybe research and install from a PPA? E.g. a quick search and I've found this PPA, which has a package for focal
.
Important: I have no idea whether this package is a good fit or the author trustworthy. It was just meant as an example, you'll have to look into that yourself.
I followed the instructions here for building OpenSSL 3 for Ubuntu 20.04: https://nextgentips.com/2022/03/23/how-to-install-openssl-3-on-ubuntu-20-04/
I did get it to work but the instructions at one point are a little unclear.
Can't launch:
$ ./chat
[Debug] (Sat Jun 24 12:14:28 2023): deserializing chats took: 0 ms
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Cannot select collections QSqlError("1", "Unable to execute statement", "no such table: collections")
[Warning] (Sat Jun 24 12:14:28 2023): QGLXContext: Failed to create dummy context
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): ERROR: Could not find any applicable models in "/home/jeromy/gpt4all/bin/" nor "/home/jeromy/.local/share/nomic.ai/GPT4All/"
[Warning] (Sat Jun 24 12:14:28 2023): QRhiGles2: Failed to create temporary context
[Warning] (Sat Jun 24 12:14:28 2023): QRhiGles2: Failed to create context
[Warning] (Sat Jun 24 12:14:28 2023): Failed to create RHI (backend 2)
[Fatal] (Sat Jun 24 12:14:28 2023): Failed to initialize graphics backend for OpenGL.
Aborted (core dumped)
20.04 will reach end of regular LTS support soon. Please upgrade.