5

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?

migrated from stackoverflow.com Nov 27 '13 at 21:40

This question came from our site for professional and enthusiast programmers.

5

You should install package ncurses-devel -- Should be done via sudo yum install ncurses-devel

1

I installed libncurses5-dev on Ubuntu 14.04 to fix the issue - as I received the same error message.

I ran sudo rm -fR autom4te.cache in the same directory, Makefile was then created, then smooth sailing.

0

This answer suits well for those needing to install ncurses also from source, also in a local folder:

  • Download ncurses: wget "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz"

  • untar tar zvxf ncurses-6.1.tar.gz and enter folder

  • Install as in:

    ./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'

  • go to screen untar folder

    ./configure --prefix=$HOME/local make install && install -m 644 $HOME/screen-4.6.2/etc/etcscreenrc $HOME/local/etc/screenrc

Related to: https://unix.stackexchange.com/questions/348184/can-not-find-screen-and-how-to-install-it-without-network-and-administration

Source: http://www.linuxfromscratch.org/blfs/view/svn/general/screen.html

-1

You need to install libncurses5-dev and then try your configure -> make process again.

Exec this command:

sudo apt-get install libncurses5-dev
  • Although I believe your answer is correct, you should include some more information on why your answer solves the question. Like why you suggest to install that specific package etc. – Mogget Dec 17 '16 at 21:38

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.