X11/xlib. h: the file or directory does not exist.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.