Common
PDSH with groups file support on Mac OS
4. September 2019
0
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 git@github.com: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

./bootstrap

configure project with groups support

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

install

make install