[MacPorts] #56825: p5-tcl-tk: Your Tcl installation fails to find Tk package

MacPorts noreply at macports.org
Fri Jul 20 03:13:04 UTC 2018

#56825: p5-tcl-tk: Your Tcl installation fails to find Tk package
  Reporter:  ryandesign  |      Owner:  chrstphrchvz
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  fixed       |   Keywords:
      Port:  p5-tcl-tk   |
Changes (by ryandesign):

 * status:  assigned => closed
 * resolution:   => fixed


 Replying to [comment:1 chrstphrchvz]:
 > I don't know what exactly is causing the error. There's a test in
 Makefile.PL that checks for Tcl/Tk and certain Tk extensions by running
 tclsh with a script test-for-tk.tcl, but for some reason, Perl never gets
 any output from tclsh when run from MacPorts, whereas I can run
 Makefile.PL manually and it will work.

 MacPorts runs as the `macports` user. This user does not have permission
 to access the X server, which is apparently what test-for-tk.tcl does by
 attempting to include the Tk package:

 $ sudo -u macports /opt/local/bin/tclsh
 % package require Tk
 couldn't connect to display

Ticket URL: <https://trac.macports.org/ticket/56825#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list