Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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