An error occurred when compiling the program in Ubuntu. In the Installation Log, we found that x11/xlib. hnosuchfileordirectory was read online. It turns out that x11M was not installed. Solution: Install X11 first, the command for the sudoapt-getinstalllibx11-dev results still failed as follows: checkingformainin-lXbsd... noche
An error occurred during Ubuntu program compilation. In the Installation Log, we found that x11/xlib. h nosuch file or directory had been checked 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. Analyzed it may be x11 not installed complete, so first input: sudo apt-cache search x11-dev
Linzchey @ linzchey-laptop :~ /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.