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

MacPorts noreply at macports.org
Fri Jul 20 04:48:22 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   |
-------------------------+--------------------------

Comment (by chrstphrchvz):

 Replying to [comment:3 ryandesign]:
 > 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:

 That explains why this test won't work if the `tk +x11` variant is active,
 but if the `tk +quartz` variant is used instead, the same `sudo -u
 macports /opt/local/bin/tclsh` command works, so I don't think the fact
 the `macports` user is used explains the whole story. Even `sudo -u
 macports perl -e "print qx(/opt/local/bin/tclsh test-for-tk.tcl)"` seems
 to work as long as the `tk +quartz` variant is active.

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


More information about the macports-tickets mailing list