gpt4all icon indicating copy to clipboard operation
gpt4all copied to clipboard

docs: add missing dependencies to Linux build instructions

Open cebtenzzre opened this issue 7 months ago • 1 comments

I actually tried to follow these instructions on an Arch Linux system with minimal graphical components, and realized that I missed a few things.

cebtenzzre avatar Dec 07 '23 20:12 cebtenzzre

I also required elfutils on arch.

cheeeeee avatar Jan 02 '24 01:01 cheeeeee

I also required elfutils on arch.

Why? I don't think we depend on libelf, and binutils should provide the standard versions of those binaries. I can run GPT4All just fine with both elfutils and libelf removed.

cebtenzzre avatar Jan 11 '24 21:01 cebtenzzre

I also required elfutils on arch.

Why? I don't think we depend on libelf, and binutils should provide the standard versions of those binaries. I can run GPT4All just fine with both elfutils and libelf removed.

Attempting to build it from source without elfutils for me broke the httpd server. It was the same with attempting the package from the AUR.

cheeeeee avatar Jan 12 '24 03:01 cheeeeee

Attempting to build it from source without elfutils for me broke the httpd server. It was the same with attempting the package from the AUR.

Could you describe the steps I should take to run into this problem, assuming I don't have elfutils installed? And the incorrect behavior I should expect to see?

cebtenzzre avatar Jan 12 '24 20:01 cebtenzzre

Sure. This assumes that you are attempting to build or fetch version 2.5.4. which the best I can tell I did this on 1/1/2024.

Attempt to build with yay or any aur helper of your choice with yay -S gpt4all-chat-git This should result in an error in the terminal complaining about libraries but will build a functioning binary. Use the functioning binary. This will work but is missing the httpd server feature which failed to build. The most obvious clue that this has happened is when you attempt to search for models it will complain about a .json file.

I think that generally covers it.

cheeeeee avatar Jan 13 '24 00:01 cheeeeee

I still can't reproduce the issue. libelf is required by base-devel, which you're supposed to have installed if you are building Arch packages. elfutils just installs a bunch of binaries prefixed with eu- that I don't think anyone really uses - we certainly don't. If you have base-devel installed but not elfutils, what's the error you get at build time?

cebtenzzre avatar Jan 16 '24 16:01 cebtenzzre

I probably just forgot something that I did since it was a while ago. The only error that I can find in my search history is CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Vulkan (missing: Vulkan_INCLUDE_DIR). However, I uninstalled elfutils and wiped everything for a fresh install and it compiled without it on the current release without issue. I probably wouldn't worry about it since it appears that the current release is working as intended.

cheeeeee avatar Jan 17 '24 00:01 cheeeeee