Skip to content

Instantly share code, notes, and snippets.

@drivard
Last active March 13, 2021 07:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save drivard/d42a0588dd1e3afd8cd5727cb4dd4d1d to your computer and use it in GitHub Desktop.
Save drivard/d42a0588dd1e3afd8cd5727cb4dd4d1d to your computer and use it in GitHub Desktop.
how to install duc on mac using brew
# /bin/bash
#
## Install duc from http://duc.zevv.nl/
## Adapted from https://gist.github.com/turtlemonvh/09a79a810d485f18af19
## Find the latest release here https://github.com/zevv/duc/releases
DUC_VERSION=1.4.3
if ! which brew ; then
echo "ERROR: brew is required"
exit 1
fi
echo "Downloading and installing dependencies"
brew install cmake
brew install cairo
brew install pango
brew install tokyo-cabinet
brew install glfw3
echo "Downloading and installing duc"
rm -f duc-$DUC_VERSION.tar.gz*
wget https://github.com/zevv/duc/releases/download/$DUC_VERSION/duc-$DUC_VERSION.tar.gz
tar xzvf duc-$DUC_VERSION.tar.gz
cd duc-$DUC_VERSION
./configure --enable-opengl --disable-x11
make
make install # Throws an error about missing /sbin/ldconfig
cd ..
echo "Testing duc: indexing home directory"
duc index ~/
echo "Testing duc: listing largest members of home directory"
duc ls -Fgc ~/ | head -n30
echo "Testing duc: graphing home directory"
duc graph ~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment