Skip to content

Raspberry Pi

DuckDB is not officially distributed for the Raspberry Pi OS (previously called Raspbian). You can build it following the instructions on this page.

Raspberry Pi (64-bit)

First, install the required build packages:

Terminal window
sudo apt-get update
sudo apt-get install -y git g++ cmake ninja-build

Then, clone and build it as follows:

Terminal window
git clone https://github.com/duckdb/duckdb
cd duckdb
GEN=ninja BUILD_EXTENSIONS="icu;json" make

Finally, run it:

Terminal window
build/release/duckdb

Raspberry Pi (32-bit)

On 32-bit Raspberry Pi boards, you need to add the -latomic link flag. As extensions are not distributed for this platform, it’s recommended to also include them in the build. For example:

Terminal window
mkdir build
cd build
cmake .. \
-DBUILD_EXTENSIONS="httpfs;json;parquet" \
-DDUCKDB_EXTRA_LINK_FLAGS="-latomic"
make -j4