Problem with installing Perl/Tk

Ryan Carsten Schmidt ryandesign at macports.org
Tue Jun 17 09:31:57 UTC 2025


On Jun 16, 2025, at 19:22, Dave Horsfall wrote:
> 
>    dave$ sudo port install p5-tk
>   p5-tk is replaced by p5.34-tk
>   --->  Computing dependencies for p5.34-tk
>   --->  Cleaning p5.34-tk
>   --->  Scanning binaries for linking errors
>   --->  No broken files found.                             
>   --->  No broken ports found.

This shows that p5-tk is replaced by p5.34-tk and that p5.34-tk was already installed.

p5.34-tk is the Tk module for Perl 5.34. It will only work with Perl 5.34. For other Perl versions, use other subports of p5-tk. 


> Where did I stuff up?  One possibility is that line saying "p5-tk is
> replaced by p5.34-tk" when I'm using:
> 
>   dave$ perl -v
> 
>   This is perl 5, version 36, subversion 3 (v5.36.3) built for darwin-thread-multi-2level

Exactly. If you want to use Perl 5.34, install the perl5 port with the +perl5_34 variant.

On the other hand, if you want to use Perl 5.36 since you presumably already have the perl5 port installed with the +perl5_36 variant, you would install the p5.36-tk port. Unfortunately there isn't one yet, so you can't do that yet. See https://trac.macports.org/ticket/67830
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250617/bc966882/attachment.htm>


More information about the macports-users mailing list