Created
March 13, 2021 07:17
-
-
Save meidikawardana/63cc1dfb0edea05f1a155fa6f64db3e6 to your computer and use it in GitHub Desktop.
how to install duc on mac using brew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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