PDSH with groups file support on Mac OS
4. September 2019
One usually would install pdsh from homebrew but for some reason the groups file support was removed from the homebrew pdsh version some time ago. The groups file feature is pretty essential for pdsh usage.
You can do the following to install pdsh manually.

checkout project

git clone [email protected]:chaos/pdsh.git
cd Pdsh

install prequisites

brew install autoconf automake libtool readline

fix libreadline discovery

Help the compiler to find libreadline with:

export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"

modify bootstrap script

For compat reasons libtoolize is named glibtoolize on mac OS. You need to adopt this in the `./bootstrap` script.

prepare project build config


configure project with groups support

./configure --with-ssh --without-rsh --with-nodeupdown --with-readline --without-xcpu --with-dshgroups


make install