perl – csshX not working after updating macOS to Ventura 13.2.1

Spread the love

I installed csshX with brew and it was working well until I upgraded to Ventura 13.2.1 (22D68). I have the issue below:

Unimplemented: POSIX::tmpnam(): use File::Temp instead at /System/Library/Perl/5.34/darwin-thread-multi-2level/ line 185.
Unimplemented: POSIX::tmpnam() at /usr/local/bin/csshX line 1130.
BEGIN failed--compilation aborted at /usr/local/bin/csshX line 1130.

So I modified the csshX file to look like:

use base       qw(CsshX::Socket::Selectable);
#use POSIX     qw(tmpnam);
use File::Temp qw/:POSIX/;
use FindBin    qw($Bin $Script);

However I am getting this error:

Can't locate in @INC (you may need to install the Foundation module) (@INC contains: /Library/Perl/5.34/darwin-thread-multi-2level /Library/Perl/5.34 /Network/Library/Perl/5.34/darwin-thread-multi-2level /Network/Library/Perl/5.34 /Library/Perl/Updates/5.34.0 /System/Library/Perl/5.34/darwin-thread-multi-2level /System/Library/Perl/5.34 /System/Library/Perl/Extras/5.34) at (eval 8) line 1.
BEGIN failed--compilation aborted at (eval 8) line 1.

I see this in csshX:

my $terminal;
sub init {
    eval "use Foundation; use List::Util qw(min max)";
    die $@ if $@;

How can I install this Foundation module?

Author: Dhanraj7978

Leave a Reply

Your email address will not be published. Required fields are marked *