No display name and no $DISPLAY environment variable on macOS when launching flair

Versions

Please provide the used software versions.

FLUKA: 4-5.0
Flair: 3.4
Operating system: macOS 14.2.1

Description

Please describe the issue. In case of reporting a bug, please provide step-by-step instructions for reproducing the error.

I’ve followed the instructions for downloading and installing FLUKA, Flair, Flair Geoviewer, and all other required programs. For a while, I was having some problems when opening Flair (bus error 10 after launching), and as I began following instructions given in another user forum. At some point in this process, I started getting the error “no display name and no $DISPLAY environment variable” whenever I tried to launch Flair with “flair”. I’m honestly pretty lost, and any help at all would be greatly appreciated. Let me know if there is any other information that would help you help me. Thank you for your time!

Input files

Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)

Hi @nebe ,

Sorry for the belated reply. Should you still have issue with Flair, please provide the output of these commands

  • pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

  • xcodebuild -version

  • gfortran -v

  • echo $PATH

  • port echo requested

  • port select --summary

Best, Luigi

Hello Luigi,

Thank you for the reply! Here are the outputs for those commands in order:

  • pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

    • version: 15.3.0.0.1.1708646388

      volume: /

      location: /

      install-time: 1756997245

  • xcodebuild -version

    • tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
  • gfortran -v

    • Using built-in specs.

      COLLECT_GCC=gfortran

      COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/aarch64-apple-darwin23/12.4.0/lto-wrapper

      Target: aarch64-apple-darwin23

      Configured with: /opt/local/var/macports/build/gcc12-42d99ebd/work/gcc-12.4.0/configure --prefix=/opt/local --build=aarch64-apple-darwin23 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc12 --includedir=/opt/local/include/gcc12 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-12 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-12 --with-gxx-include-dir=/opt/local/include/gcc12/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld-classic --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-dir=/opt/local/libexec/gcc12/libc++/include/c++/v1 --with-pkgversion=‘MacPorts gcc12 12.4.0_2+stdlib_flag’ --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk

      Thread model: posix

      Supported LTO compression algorithms: zlib zstd

      gcc version 12.4.0 (MacPorts gcc12 12.4.0_2+stdlib_flag)

  • echo $PATH

    • /opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/neilberi/fluka4-5.0/bin
  • port echo requested

    • gcc12 @12.4.0_2+stdlib_flag

      gdb @16.3_0

      ghostscript @10.05.1_0+x11

      gnuplot @6.0.3_2+aquaterm+luaterm+pangocairo+qt5+wxwidgets

      py312-matplotlib @3.10.6_0+tkinter

      py312-numpy @1.26.4_3+accelerate+gfortran

      py312-Pillow @9.5.0_1+x11

      py312-Pillow @9.5.0_1

      py312-pip @25.1.1_0

      py312-pydicom @3.0.1_0

      py312-scipy @1.16.1_0+accelerate+gfortran

      py312-tkinter @3.12.11_0

      tk @8.6.17_0+x11

      xorg @20090316_0

      xorg-server @1.20.11_1

      xterm @398_0

  • Name Selected Options

    ==== ======== =======

    clang none mp-clang-19 none

    fonttools none fonttools-312 none

    gcc mp-gcc12 mp-gcc12 mp-gcc15 none

    llvm none mp-llvm-19 none

    mypy none mypy312 none

    pip pip312 pip3-apple pip312 none

    pip2 none none

    pip3 pip312 pip3-apple pip312 none

    python python312 python312 python313 none

    python3 python312 python312 python313 none

    wxWidgets none wxWidgets-3.2 none

Let me know if there’s anything else I can provide!

Best,

Neil

Hi @nebe,

You should have noticed a message at the installation of GCC12, as it’s known to fail.
Please use GCC13 or a higher version. Remember then to select this version with the command port select.

If this doesn’t fix your issue, please also send me the output of the command echo $DISPLAY.

Best, Luigi

Hello Luigi,

Thank you for the suggestion. I recompiled with gcc13, and there was no change. When I enter echo $DISPLAY, the output is just a blank line. Let me know what you think I should do next.

Best,

Neil

Hi @nebe ,

Do you have XQuartz installed?
I suggest you also check your shell profile file in case it is clobbering the DISPLAY variable.

Cheers, Luigi