lmstudio-ai / .github

34 stars 3 forks source link

On KUbuntu 23.10, LM_Studio searches for the libclblast libraries in the wrong path ! #24

Open Gael-Mifsud opened 4 months ago

Gael-Mifsud commented 4 months ago

Hello,

On KUbuntu 23.10, with an AMD video card, even after installing libclblast-dev and libclblast, LM_Studio (Linux Beta Based on 0.2.14) doesn't find the libclblast libraries because it searches them in /usr/local/lib/ but these are in /usr/lib/x86_64-linux-gnu/ :

A JavaScript error occurred in the main process
Uncaught Exception:
Error: /usr/local/lib/libclblast.so: cannot open shared object file: No such file or directory
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
    at Module._extensions..node (node:internal/modules/cjs/loader:1326:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:2:1822)
    at Module.load (node:internal/modules/cjs/loader:1096:32)
    at Module._load (node:internal/modules/cjs/loader:937:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1120:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at 6829 (/tmp/.mount_LM_Stu21ycjv/resources/app/.webpack/main/index.js:2:1930)
    at r (/tmp/.mount_LM_Stu21ycjv/resources/app/.webpack/main/index.js:8:401969)

I had to make two symbolic links to circumvent the error : sudo ln -sf /usr/lib/x86_64-linux-gnu/libclblast.so /usr/local/lib/ sudo ln -sf /usr/lib/x86_64-linux-gnu/libclblast.so.1 /usr/local/lib/

Now, Lm_Studio launches and seems right.

Thank you.

CPioGH2002 commented 4 months ago

Same for Ubuntu 23.10 here (which makes sense given how similar it is to Kubuntu).

joeledwards commented 3 months ago

On ubuntu 22.04 it was a little less straightforward.

Installed the library

sudo apt install libclblast1

Then had to set up the correct symbolic links. The .so file didn't follow the standard.

sudo ln -s /usr/lib/x86_64-linux-gnu/libclblast.so.1.5.2 /usr/local/lib/libclblast.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libclblast.so.1 /usr/local/lib/libclblast.so.1
eotobi commented 3 months ago

Thank you joeledwards. This solved the problem but I first had to: sudo apt-get install ocl-icd-libopencl1 then use your guide.

AjayJasperJ commented 3 months ago

thank you for solving !