Repository navigation
I encountered a few difficulties with the Linux installation, which ones should be fixed? #839
Unanswered
MaximeCheramy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I finally managed to build the latest version of Meetily on my Ubuntu 26.04 system but I encountered a few errors that I wanted to share.
My setup:
v0.4.1(a2cb62e), built from source withfrontend/build-gpu.shnvidia-cuda-toolkitpackage, whichdocs/BUILDING.mdrecommendsCommand used, as described in
docs/BUILDING.md:1.
cudart_staticnot found with the distro CUDA toolkitThe docs say to run
sudo apt install nvidia-cuda-toolkit. On Debian and Ubuntu, that package installs CUDA libraries into/usr/lib/x86_64-linux-gnu/(libcudart_static.ais there). It doesn't create/usr/local/cuda. whisper-rs-sys only adds the standard CUDA directories (/usr/local/cuda/lib64,/opt/cuda/lib64, or$CUDA_PATH) to the link search path. rustc only looks for static libraries in-Ldirectories, so it can't find this one.Workaround:
export RUSTFLAGS="-L /usr/lib/x86_64-linux-gnu"2.
CMAKE_CUDA_ARCHITECTURESis hardcoded to 75, ignoring the user's valueThe docs tell users to set
CMAKE_CUDA_ARCHITECTURESto their GPU's compute capability. Three places then overwrite it with75:frontend/build-gpu.sh:19frontend/dev-gpu.sh:20frontend/scripts/tauri-auto.js:45(runs throughpnpm run tauri:build/tauri:dev, so fixing only the shell scripts isn't enough)3. Tauri npm/Rust version mismatch when the installed pnpm is older than 9
pnpm-lock.yamluses lockfile format v9 and correctly pins@tauri-apps/api2.11.0. pnpm 8 can't read it (ERR_PNPM_LOCKFILE_BREAKING_CHANGE), so thenode_modulesfrom an earlier install never got updated.docs/BUILDING.mddoes say to use pnpm 9.15.9, but nothing enforces it.Workaround:
npx pnpm@9 install --frozen-lockfileSuggested fix: add
"packageManager": "pnpm@9.15.9"tofrontend/package.jsonso Corepack picks the right version. Optionally,build-gpu.shcould check the pnpm version4. Linux system dependencies for Tauri aren't documented
The Linux prerequisites in
docs/BUILDING.mdanddocs/building_in_linux.mdonly listbuild-essential cmake git. Tauri 2 also needs the WebKitGTK development packages, among others.Suggested fix: add the Tauri Linux prerequisites to the docs, e.g. for Debian/Ubuntu:
I hope this feedback will be useful to improve the documentation.
All reactions