Errors During program compilation,In the Installation Log, we found that X11/xlib. h nosuch file or directory had read the information online. It turns out that x11m was not installed.
Solution:
Install X11 first, command for sudo apt-Get install libx11-dev
The result still has the following error:
Checking for main in-lxbsd... no
Checking for socket in-lsocket... no
Checking for gethostbyname in-lnsl... yes
Checking for dcgettext in-lintl... no
Checking for getnodebyname in-ldnet_stub... no
Checking that G ++ can handle-O2. .. No
Checking Standard STL is available... no
Checking for TCL. H...-I.../include
Checking for tclint. H...-I.../include
Checking for libtcl8.4...../lib-ltcl8.4
Checking for init. TCL.../lib/tcl8.4
Checking for HTTP. TCL.../lib/tcl8.4/http1.0
Checking tcl http. TCL library... yes
Checking for tclsh8.4.11... No
Checking for tclsh8.4....../bin/tclsh8.4
Checking for TK. H...-I.../include
Checking for libtk8.4...../lib-ltk8.4
Checking for TK. TCL.../lib/tk8.4
Checking for X11 header files
Can't find x pair des
Otcl-1.12 configuration failed! Exiting...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
For common problems and bug fixes.
Still not solved. After analysis, it may be that X11 is not fully installed, So enter:Sudo apt-Cache x11-dev
[Email protected]: ~ /Codes/$ sudo apt-cache search x11-dev
Libgl1-mesa-swx11-dev-a free implementation of the OpenGL API -- Development files
Libghc6-x11-dev-Haskell X11 binding for ghc
Libgtkglextmm-x11-dev-C ++ wrapper for the OpenGL extension to GTK (Development files)
Libx11-dev-X11 client-side Library (Development headers)
Install the above components separately. The command is as follows:
Sudo apt-Get install libx11-dev
Sudo apt-Get install libgtkglextmm-x11-dev
Sudo apt-Get install libghc6-x11-dev
Sudo apt-Get install libgl1-mesa-swx11-dev
You can also click "Search"> "tag" to install ">" application.
In ubuntu8.04, the path of X11/xlib. h after installation is/usr/include/X11/xlib. h.
Www.cnblogs.com/yixiaoyang/archive/2010/11/17/1879504.html
X11/xlib. h: the file or directory does not exist.