[MacPorts] #63579: xcircuit: no display name and no $DISPLAY environment variable (was: Xcircuit does not open)

MacPorts noreply at macports.org
Wed Oct 6 02:15:45 UTC 2021


#63579: xcircuit: no display name and no $DISPLAY environment variable
-----------------------+----------------------------
  Reporter:  PNR-1     |      Owner:  kurthindenburg
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.1
Resolution:            |   Keywords:
      Port:  xcircuit  |
-----------------------+----------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * keywords:  error =>
 * owner:  (none) => kurthindenburg
 * port:  Xcircuit => xcircuit


Old description:

> I installed Xcircuit following the page
> https://ports.macports.org/port/xcircuit/. The installation ran
> successfully,
> But when I run xcircuit in terminal, I get the below error - Can you help
> me figure out what I am running wrong?
>
> I tried installing tcl using MacPorts, but that says its already
> installed
>
> Last login: Mon Oct  4 08:25:55 on ttys000
> xyz at xyzs-MacBook-Pro ~ % xcircuit
> application-specific initialization failed: no display name and no
> $DISPLAY environment variable
> Error in startup script: no display name and no $DISPLAY environment
> variable
>     while executing
> "load /opt/local/lib/libtk8.6.dylib Tk"
>     ("package ifneeded Tk 8.6.11" script)
>     invoked from within
> "package require Tk $tcl_version"
>     invoked from within
> "if {$tcl_version < 8.0} {
>     return -code error "tkcon requires at least Tcl/Tk8"
> } else {
>     package require Tk $tcl_version
> }"
>     (file "/opt/local/lib/xcircuit-3.9/tkcon.tcl" line 44)
> xyz at xyzs-MacBook-Pro ~ %
>
> I run this on an M1 MacBook Pro.

New description:

 I installed Xcircuit following the page
 https://ports.macports.org/port/xcircuit/. The installation ran
 successfully,
 But when I run xcircuit in terminal, I get the below error - Can you help
 me figure out what I am running wrong?

 I tried installing tcl using MacPorts, but that says its already installed

 {{{
 Last login: Mon Oct  4 08:25:55 on ttys000
 xyz at xyzs-MacBook-Pro ~ % xcircuit
 application-specific initialization failed: no display name and no
 $DISPLAY environment variable
 Error in startup script: no display name and no $DISPLAY environment
 variable
     while executing
 "load /opt/local/lib/libtk8.6.dylib Tk"
     ("package ifneeded Tk 8.6.11" script)
     invoked from within
 "package require Tk $tcl_version"
     invoked from within
 "if {$tcl_version < 8.0} {
     return -code error "tkcon requires at least Tcl/Tk8"
 } else {
     package require Tk $tcl_version
 }"
     (file "/opt/local/lib/xcircuit-3.9/tkcon.tcl" line 44)
 xyz at xyzs-MacBook-Pro ~ %
 }}}

 I run this on an M1 MacBook Pro.

--

Comment:

 Have you followed the instructions that are printed when you run the
 command `port notes xinit`? If not, please do.

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


More information about the macports-tickets mailing list