ehowton: (Default)
ehowton ([personal profile] ehowton) wrote2022-01-27 06:41 pm
Entry tags:

csshX


Let's talk ClusterSSH on macOS. Because ugh.
ehowton@minime % brew install csshx
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
...
ehowton@minime % csshx
Unimplemented: POSIX::tmpnam(): use File::Temp instead at /System/Library/Perl/5.30/darwin-thread-multi-2level/POSIX.pm line 185.
Unimplemented: POSIX::tmpnam() at /usr/local/bin/csshx line 1130.
BEGIN failed--compilation aborted at /usr/local/bin/csshx line 1130.

According to StackOverflow, something with how the Perl they used to compile csshX was deprecated in the Perl included with Big Sur and Catalina. Easy fix:

# vi /usr/local/Cellar/csshx/0.74/bin/csshX

Replace:

use POSIX qw(tmpnam);

With

use File::Temp qw(tmpnam);

Works immediately.