Skip to content

Commit

Permalink
Merge pull request #4720 from szarnyasg/musl-clarification
Browse files Browse the repository at this point in the history
Clarify scope of musl distribution
  • Loading branch information
szarnyasg authored Feb 6, 2025
2 parents 0a09388 + df3e7d7 commit 6455e9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _posts/2025-02-05-announcing-duckdb-120.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Currently, DuckDB extensions use DuckDB’s internal C++ structures. This – al
### musl Extensions

[**Distributing extensions for musl.**](https://github.com/duckdb/duckdb/pull/15607)
The [`musl` C library](https://musl.libc.org/) is often used in lightweight setups such as Docker setups running Alpine Linux. Starting with this release, we officially support musl and we distribute extensions for the `linux_amd64_musl` platform (but not yet for `linux_arm64_musl`).
The [`musl` C library](https://musl.libc.org/) is often used in lightweight setups such as Docker setups running Alpine Linux. Starting with this release, we officially support musl and we distribute extensions for the `linux_amd64_musl` platform (but not yet for `linux_arm64_musl`). Note that DuckDB binaries (e.g., the CLI client) are not yet distributed for musl platforms, so you have to [build them from source]({% link docs/dev/building/linux.md %}).

## Final Thoughts

Expand Down
16 changes: 14 additions & 2 deletions docs/dev/building/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ apk add g++ git make cmake ninja
```

Note that Alpine Linux uses the musl libc as its C standard library.
There are no official binaries distributed for musl libc but DuckDB can be build with it manually following the instructions on this page.
There are no official DuckDB binaries distributed for musl libc but it can be build with it manually following the instructions on this page.
Note that starting with DuckDB v1.2.0, [extensions are distributed for the `linux_amd64_musl` platform]({% post_url 2025-02-05-announcing-duckdb-120 %}#musl-extensions).

#### Python Client on Alpine Linux

To install the Python client on Alpine Linux, run:

```batch
apk add g++ py3-pip
pip3 install duckdb
```

This will compile DuckDB from source.

## Building DuckDB

Expand All @@ -47,7 +59,7 @@ build/release/duckdb

For different build configurations (`debug`, `relassert`, etc.), please consult the [Build Configurations page]({% link docs/dev/building/build_configuration.md %}).

### Building Using Extension Flags
## Building Using Extension Flags

To build using extension flags, set the `CORE_EXTENSIONS` flag to the list of extensions that you want to be build. For example:

Expand Down

0 comments on commit 6455e9a

Please sign in to comment.