Skip to content

docs(prerequisites): note about static libs for Alpine/musl builds#3840

Open
Metbcy wants to merge 1 commit into
tauri-apps:v2from
Metbcy:docs/alpine-static-musl-build
Open

docs(prerequisites): note about static libs for Alpine/musl builds#3840
Metbcy wants to merge 1 commit into
tauri-apps:v2from
Metbcy:docs/alpine-static-musl-build

Conversation

@Metbcy
Copy link
Copy Markdown

@Metbcy Metbcy commented May 21, 2026

Summary

The Alpine tab of the prerequisites page lists the -dev packages needed to build Tauri, but Alpine targets musl, which links many system libs statically. Users following the current instructions hit linker errors for symbols from libraries that pkg-config happily reports as present.

This adds a note + working apk add --no-cache snippet (openssl-libs-static, cairo-static, harfbuzz-static, glib-static, wayland-static, zlib-static) right under the existing Alpine install block, plus a heads-up that not every Tauri dep ships as *-static on Alpine and may need to be built from source.

The snippet is the working incantation @RoDmitry posted on the upstream issue when reproducing the build failure.

Refs tauri-apps/tauri#12296

Verification

  • Pure docs change to src/content/docs/start/prerequisites.mdx, no code paths affected.
  • MDX renders as a plain quoted note + fenced sh block, matching the surrounding style of the existing Alpine note about fonts.

Alpine Linux uses musl, which links system libraries statically by default.
Building Tauri apps there commonly fails at the linker step even after
installing all the recommended -dev packages, because the corresponding
*-static packages aren't installed. Document the additional apk packages
that resolve the most common cases, with a heads-up that not every Tauri
dependency ships as *-static on Alpine.

Refs #12296 (tauri-apps/tauri)
@Metbcy Metbcy requested a review from a team as a code owner May 21, 2026 08:25
@github-project-automation github-project-automation Bot moved this to 🪵 Backlog in Documentation May 21, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for tauri-v2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b7cd422
🔍 Latest deploy log https://app.netlify.com/projects/tauri-v2/deploys/6a0ec166bd3b990007759a8c
😎 Deploy Preview https://deploy-preview-3840--tauri-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🔴 down 1 from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🪵 Backlog

Development

Successfully merging this pull request may close these issues.

1 participant