Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.72 KB

macOS.md

File metadata and controls

42 lines (29 loc) · 1.72 KB

PDF Arranger on macOS

Run with Nix

To use pdfarranger on macOS, is suggested to use Nix, which already provides pdfarranger package.

Install Nix on macOS

If this is your first time using Nix on macOS, it's recommended to use Determinate Nix Installer. Just type this one-liner command in terminal:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Instead of Determinate Nix Installer, you can also use Official Nix Installer:

sh <(curl -L https://nixos.org/nix/install)

Run pdfarranger Ad hoc

After installation, run nix-shell -p pdfarranger --run pdfarranger in terminal to launch pdfarranger. Nix will download pdfarranger and its dependencies to /nix.

Add pdfarranger to Applications

You may consider set up nix-darwin.

Run pdfarranger manually

If you want to run pdfarranger without nix, you can install dependencies manually (Homebrew / MacPort / etc.).

You'll need

  1. GTK3
  2. gettext

After installation, set two environment variables:

  1. GSETTINGS_SCHEMA_DIR: The file $GSETTINGS_SCHEMA_DIR/org.gtk.Settings.FileChooser.gschema.xml should exist.
  2. DYLD_LIBRARY_PATH: The file $DYLD_LIBRARY_PATH/libintl.8.dylib should exist.

Finally, you can run

./setup.py build
python3 -m pdfarranger