Problem with installing Perl/Tk
Dave Horsfall
dave at horsfall.org
Tue Jun 17 00:22:13 UTC 2025
I'm having trouble installing Perl/Tk (High Sierra 10.13.6 - as far as
this thing will go); I don't want the CPAN version because it insists on
installing its own Perl (which hangs on one of the tests anyway).
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.
Quick test:
dave$ perl -e 'use Tk'
Can't locate Tk.pm in @INC (you may need to install the tk module) (@INC contains: /opt/local/lib/perl5/site_perl/5.36/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.36 /opt/local/lib/perl5/vendor_perl/5.36/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.36 /opt/local/lib/perl5/5.36/darwin-thread-multi-2level /opt/local/lib/perl5/5.36) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Dunno why it couldn't install "tk" itself, but OK...
dave$ sudo port install tk
---> Computing dependencies for tk
The following dependencies will be installed: tk-quartz
Continue? [Y/n]: y
---> Fetching archive for tk-quartz
---> Attempting to fetch tk-quartz-8.6.16_0.darwin_17.x86_64.tbz2 from http://packages.macports.org/tk-quartz
---> Attempting to fetch tk-quartz-8.6.16_0.darwin_17.x86_64.tbz2.rmd160 from http://packages.macports.org/tk-quartz
---> Installing tk-quartz @8.6.16_0
---> Activating tk-quartz @8.6.16_0
---> Cleaning tk-quartz
---> Fetching archive for tk
---> Attempting to fetch tk-8.6.16_0+quartz.any_any.x86_64.tbz2 from http://packages.macports.org/tk
---> Attempting to fetch tk-8.6.16_0+quartz.any_any.x86_64.tbz2.rmd160 from http://packages.macports.org/tk
---> Installing tk @8.6.16_0+quartz
---> Activating tk @8.6.16_0+quartz
---> Cleaning tk
---> Updating database of binaries
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
Test it again:
dave$ perl -e 'use Tk'
Can't locate Tk.pm in @INC (you may need to install the Tk module) (@INC contains: /opt/local/lib/perl5/site_perl/5.36/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.36 /opt/local/lib/perl5/vendor_perl/5.36/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.36 /opt/local/lib/perl5/5.36/darwin-thread-multi-2level /opt/local/lib/perl5/5.36) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
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
Thanks.
-- Dave
More information about the macports-users
mailing list