I tried to install the
screen command on RedHat from source code. But when I run the
configure, it returned
configure: error: !!! no tgetent - no screen
So does anyone know how to fix it?
This answer suits well for those needing to install ncurses also from source, also in a local folder:
untar and enter folder
tar zvxf ncurses-6.1.tar.gz cd ncurses-6.1
./configure --prefix=$HOME/local make make install`
before making the same for screen, export this as:
export LDFLAGS='-L$HOME/local/lib' export CPPFLAGS='-I$HOME/local/include'
screen download and install:
cd ~ wget "https://ftp.gnu.org/gnu/screen/screen-4.8.0.tar.gz" tar xzvf screen-4.8.0.tar.gz mkdir $HOME/local/etc # for install below cd screen-4.8.0 ./configure --prefix=$HOME/local # if you got tgetent error use real path instead of $HOME make install && install -m 644 $HOME/screen-4.8.0/etc/etcscreenrc $HOME/local/etc/screenrc export PATH="$HOME/local/bin:$PATH"