I am ready to create a fork of this PKGBUILD with a binary patch that corrects the library paths from /usr/local/lib
to /usr/lib
. Can I mark you as a contributor myyc <myyc@domain.xxx>
according to your git commits?
Search Criteria
Package Details: lmstudio 0.3.14.5-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/lmstudio.git (read-only, click to copy) |
---|---|
Package Base: | lmstudio |
Description: | Discover, download, and run local LLMs |
Upstream URL: | https://lmstudio.ai/ |
Keywords: | appimage |
Licenses: | custom |
Conflicts: | lmstudio-appimage |
Submitter: | envolution |
Maintainer: | envolution |
Last Packager: | envolution |
Votes: | 16 |
Popularity: | 1.36 |
First Submitted: | 2024-11-23 18:53 (UTC) |
Last Updated: | 2025-03-27 22:13 (UTC) |
Dependencies (5)
- clblast (clblast-gitAUR)
- fuse2
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- graphicsmagick (make)
Required by (0)
Sources (1)
phrippy commented on 2024-02-05 02:04 (UTC)
myyc commented on 2024-02-04 03:18 (UTC)
@phrippy: the release notes say specifically "if you run into libclblast errors". it's not a bug in this package, it's a lmstudio issue that shows up in some machines. you're free to add your meta package to the aur and i'll recommend it here as a solution.
phrippy commented on 2024-02-01 16:32 (UTC)
Okay, now this is official recommendation, hehe.
Can you make something like this and add it as depends?
pkgname=clblast-local
pkgver=1.0
pkgrel=1
pkgdesc="Symlinks for clblast libraries to work with /usr/local/lib"
arch=('x86_64')
license=('custom')
depends=('clblast')
package() {
# Create directory if it does not exist
mkdir -p "${pkgdir}/usr/local/lib"
# Creating symlinks
ln -s /usr/lib/libclblast.so "${pkgdir}/usr/local/lib/libclblast.so"
ln -s /usr/lib/libclblast.so.1 "${pkgdir}/usr/local/lib/libclblast.so.1"
}
myyc commented on 2024-01-24 02:19 (UTC)
@phrippy i don't have this issue, and the fact that you only need it for the first run seems a bit strange. the package is an appimage and it shouldn't depend on external packages - minus the ones required to run any appimage. can you raise this to the lm studio devs?
phrippy commented on 2024-01-23 23:17 (UTC)
@myyc after manual installing the clblast package and set specified symlinks everything is fine. Even if I delete the symlinks or package after first run lm-studio (!). So, it is only first run trouble. I can reproduce it again by this steps:
- Delete directory
~/.cache/lm-studio
- Delete package clblast (or only specified symlinks, subject trying find it only in /usr/local/lib, not /usr/lib ; it's stange)
- Run
lm-studio
in terminal and get this output:
~ lm-studio
Reading gpu_preferences at /home/phrippy/.cache/lm-studio/gpu-preferences.json
00:54:21.201 › GPU Preferences: null
00:54:21.235 › GPU info: 05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c2)
00:54:21.235 › Got GPU Type: amd
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /usr/local/lib/libclblast.so.1: 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-sturzIAvc/resources/app/.webpack/main/index.js:2:1756)
at r (/tmp/.mount_lm-sturzIAvc/resources/app/.webpack/main/index.js:8:420150)
If the symlinks is available and correct, then output is fine and file ~/.cache/lm-studio/gpu-preferences.json will created. After that, specified symlinks and so-files is not needed, we can delete it
myyc commented on 2024-01-23 15:41 (UTC)
@prippy what does it mean that it needs to depend on it? i downloaded a small model and it works fine without, i don't have that package installed. can you be more specific?
phrippy commented on 2024-01-23 15:06 (UTC) (edited on 2024-01-23 15:07 (UTC) by phrippy)
Need as depend clblast package, and fix symlinks:
ln -sf /usr/lib/libclblast.so.1 /usr/local/lib/libclblast.so.1
ln -sf /usr/lib/libclblast.so /usr/local/lib/libclblast.so
SoleSoul commented on 2023-12-20 18:10 (UTC)
https://s3.amazonaws.com/releases.lmstudio.ai/prerelease/LM_Studio-0.2.10-beta-v2.AppImage Fixes two issues with 0.2.9. Failure to start and failure to use GPU acceleration.
doaxan commented on 2023-12-18 05:36 (UTC)
A new version has been released: https://s3.amazonaws.com/releases.lmstudio.ai/prerelease/LM_Studio-0.2.9-beta-v2.AppImage
myyc commented on 2023-12-14 00:44 (UTC)
@SoleSoul added, thanks!
Pinned Comments
envolution commented on 2025-02-16 19:53 (UTC)
Please don't flag out of date referring to the beta versions. Versions this package track are sourced from https://lmstudio.ai/
https://aur.archlinux.org/packages/lmstudio-beta tracks https://lmstudio.ai/beta-releases
It's possible this version can be at a higher version level than the beta releases, and vice-versa.