[MacPorts] #62036: git @2.30.0: gui and gitk commands don't work: Error in startup script: couldn't connect to display ":0"

MacPorts noreply at macports.org
Tue May 18 13:00:45 UTC 2021


#62036: git @2.30.0: gui and gitk commands don't work: Error in startup script:
couldn't connect to display ":0"
-------------------------+----------------------
  Reporter:  mohd-akram  |      Owner:  ci42
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  git         |
-------------------------+----------------------

Comment (by gagarine):

 Apple tk on macOS Big sur 11.3.1 as a deprecation warning: {{{DEPRECATION
 WARNING: The system version of Tk is deprecated and may be removed in a
 future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to
 suppress this warning.}}}

 I tried to install tk using macports. I have git from macports too. It do
 not works


 {{{
 $ sudo port install tk git
 $ gitk
 application-specific initialization failed: couldn't connect to display
 ":0"
 Error in startup script: couldn't connect to display ":0"
     while executing
 "load /opt/local/lib/libtk8.6.dylib Tk"
     ("package ifneeded Tk 8.6.11" script)
     invoked from within
 "package require Tk"
     (file "/opt/local/bin/gitk" line 10)
 }}}

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


More information about the macports-tickets mailing list