Skip to content

Instantly share code, notes, and snippets.

@egaudrain
Created June 16, 2025 08:28
Show Gist options
  • Select an option

  • Save egaudrain/1b6f7ce5f214cbffe59a479c47b1901d to your computer and use it in GitHub Desktop.

Select an option

Save egaudrain/1b6f7ce5f214cbffe59a479c47b1901d to your computer and use it in GitHub Desktop.
Install Duplicity on MacOS without Homebrew

This is a recipe rehashed from https://gitlab.com/duplicity/duplicity to avoid the "librsync.h missing" error.

First install pipx with:

python3 -m pip install --upgrade pip pipx

Followed with:

pipx ensurepath

Then install librsync with macports:

sudo port install librsync

And finally:

export CPATH=${CPATH}:/opt/local/include; export LIBRARY_PATH=${LIBRARY_PATH}:/opt/local/lib; pipx install duplicity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment