Install xterm

Issue #56 wontfix
Jan Blechta created an issue

xterm is useful for parallel debugging, e.g.: mpirun -n 3 xterm -e gdb -ex r -ex q -args python -B -m pytest -sv .

Comments (5)

  1. Jack Hale

    We have to be careful not to end up with a container with the kitchen sink installed. I don't think this is core functionality and xterm can be installed in 2 seconds with apt-get.

  2. Jan Blechta reporter

    I agree. It pulled 16.7 MB and took 159 MB disk. That's too much.

    But this issue, although poorly formulated, was meant rather as a question how to use xterm from the container. Consider that

    sudo apt-get update
    sudo apt-get install -y xterm gdb
    cd $FENICS_SRC_DIR/dolfin/build/test/unit/python/function
    mpirun -n 3 xterm -e gdb -ex r -args python -B -m pytest -sv test_expression.py
    

    fails with

    xterm: Xt error: Can't open display: 
    xterm: DISPLAY is not set
    xterm: Xt error: Can't open display: 
    xterm: DISPLAY is not set
    xterm: Xt error: Can't open display: 
    xterm: DISPLAY is not set
    

    or just MWE

    sudo apt-get update
    sudo apt-get install xterm
    xterm
    

    Any ideas?

  3. Log in to comment