GNU Screen: you have neither usable sockets nor usable pipes

compilinggnu-screen

I am trying to build GNU screen on CentOS 6 Minimal and
When I type the command ./configure

it gives me this error

you have neither usable sockets nor usable pipes -> no screen

I tried to use yum update and yum provide */stropts.h

Still gives me the same error

when I type the command make it gives me that error

pty.c:38:26: error: sys/stropts.h: No such file or directory

How should I solve it?

Pleas don't answer
use yum install screen

Best Answer

On Redhat based distros it's often easier to install a group of tools for a particular task rather than try and guess what one might need. You can use yum to get the list of groups that are availble.

$ yum groups list

You can limit this list to developer types of groups like this:

$ yum groups list | grep -i dev
   Development and Creative Workstation
   C Development Tools and Libraries
   Development Tools
   RPM Development Tools

To install:

$ sudo yum groups install "C Development Tools and Libraries"

This group of packages should cover most of the opensource software you'll try and install. There will of course be outliers. If you encounter missing libraries you'll need to install the binary form of the library and the headers (for compilation).

Example

For the library libmng there are 4 packages available.

$ rpm -aq | grep libmn
libmng-devel-1.0.10-11.fc19.x86_64
libmng-1.0.10-11.fc19.x86_64
libmng-1.0.10-11.fc19.i686
libmnl-1.0.3-5.fc19.x86_64

So you'll need to install these types of packages to do a compilation. The libraries are always named <lib name> and the corresponding headers are named <lib name>-devel on Redhat distros.

Related Question