Running gubax from CBMR Ubuntu systems fails with error opening ncurses terminal

On Ubuntu version 14.05 and 16.04 gubux from CBMR 8.1.1 fails to run, reporting an “error opening terminal: linux”.

This is caused by ncurses not using the correct terminfo directories to find the terminfo file. The Readme documentation indicates that it uses the path /lib/terminfo to detect the terminal types, but this doesn’t seem to work.

To fix this manually set an environment variable like this:

export TERMINFO=/lib/terminfo gubax