Fatal Error X11/xlib.h Fedora
Contents |
asked 2013-07-06 04:21:05 +0000 pinguwin 13 ●1 ●1 ●3 updated 2014-09-29 05:31:41 +0000 mether 7023 ●41 ●67 ●111 https://fedoraproject.org... I did a standard install of F19 with Mate and all the optional software chosen. I'm trying to install tcl/tk 5.9 x11/xlib.h mac & 6.0 (I know it is installed by default but I need to tweak it).
Fatal Error: X11/extensions/xtest.h: No Such File Or Directory
Tcl installs fine. I do a ./configure of tk and when I make ../generictk.h:80:25: fatal error: X11/Xlib.h No such file or directory x11 xlib h no such file or directory centos # include
X11/extensions/xshm.h: No Such File Or Directory
following the same protocol that I have on other versions of Fedora. There are other packages that aren't being installed (for example, gfortran) that are usually installed. Any ideas why the x libraries don't install? edit retag flag offensive close merge delete CommentsSpot, figured out almost everything I need (still not sure where the Xt lib is) but your suggestions gave me pointers to what I needed for a bunch of things and not having to xlib.h download do them one by one. I really didn't understand yum well enough and you helped me to figure out where to look it up (just like it's supposed to work). Thanks much.pinguwin( 2013-07-06 20:08:41 +0000 )editPlease mark his answer as correct if it helped youmether( 2013-07-07 04:25:47 +0000 )edit 1 answer Sort by ยป oldest newest most voted 1 answered 2013-07-06 04:29:16 +0000 spot 856 ●2 ●9 ●13 http://spot.livejournal.c... Normally, -devel packages are not installed by Fedora unless you tell the installer explicitly that you want them. In your case, you want the libX11-devel package. If you're trying to determine what package has a header file, you can either run: repoquery -qf /usr/include/X11/Xlib.h (that will tell you what package has that file, you do need to know the full path, but it is usually pretty obvious) Or, if you just want to install the package with that header file: yum install /usr/include/X11/Xlib.h Yum can do that because it has filelists_db in the extended repodata. :) edit flag offensive delete link more CommentsThat did solve the immediate problem at hand, thanks for that.Not sure why/how but on the other versions of Fedora, I was doing full developer installs. On the Mate install option, I chose all the available options. How can I tell the installer to do all the -devel packages? I've got some more conf
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
X11/xlib.h' File Not Found Xcode
Business Learn more about hiring developers or posting ads with us Unix & Linux Questions
Fatal Error: X11/extensions/xinerama.h: No Such File Or Directory
Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD x11/xlib.h windows and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top https://ask.fedoraproject.org/en/question/27815/cant-compile-with-xlib/ X11/Xlib.h: No such file or directory up vote 1 down vote favorite I am trying to install tcl and tk on my linux server.I don't have the root password,So I am installing them in my home directory.I am using below method for installing it manually. cd ~/tcl8.5.11/unix ./configure --prefix=/home/cnel711 --exec-prefix=/home/cnel711 make make install cd ~/tk8.5.11/unix ./configure --prefix=/home/cnel711 --exec-prefix=/home/cnel711 --with-tcl=/home/cnel711/tcl8.5.11/unix make make install I was able to install tcl without any problem ,but I am facing problem http://unix.stackexchange.com/questions/68552/x11-xlib-h-no-such-file-or-directory while installing tk. configure for tk worked fine ,I am facing problem while using make.I am getting this error. X11/Xlib.h: No such file or directory I found out this file was missing on the server.So,I downloaded libX11-devel from here.Again,I installed it in my home directory.Then I exported the path to the header files and when I use which command to find Xlib.h,it locates ths file. >which Xlib.h ~/include/X11/Xlib.h Now, when I try to install tk again configure works fine as usual but I get the same error again while using make X11/Xlib.h: No such file or directory. Please help me out,what possibly is going wrong here ? make share|improve this question asked Mar 20 '13 at 12:20 g4ur4v 59611426 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote accepted The compiler is looking in standard locations for the header file: it doesn't know that you've put it in your home directory. Try this, which sets a compiler option to point to the right place: cd ~/tcl8.5.11/unix CFLAGS="-I$HOME/include" ./configure --prefix=/home/cnel711 --exec-prefix=/home/cnel711 make make install share|improve this answer answered Mar 20 '13 at 12:23 Flup 4,88911436 Thanks for your help,it worked. –g4ur4v Mar 20 '13 at 12:39 add a comment| up vote 3 down vote More or less the same answer as Flup ;) export CFLAGS="-I$HOME/include" make If you end u
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC https://ubuntuforums.org/showthread.php?t=1737761 Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login http://www.linux-pages.com/2011/08/installing-xdotool-missing-xtest/ Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs [SOLVED] Have loaded missing headers, but they are still reported missing ! Having an Issue With no such Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 7 of 7 Thread: Have loaded missing headers, but they are still reported missing ! Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode April 24th, 2011 #1 kliq View Profile no such file View Forum Posts 5 Cups of Ubuntu Join Date Sep 2010 Beans 36 Have loaded missing headers, but they are still reported missing ! Hello. I'm trying to compile a program that I downloaded and it reports [amongst many other things]: Code: .... gcc -O2 -L/usr/X11R6/lib -lX11 -lXext -o viewer viewer.c viewer.c:28:22: error: X11/Xlib.h: No such file or directory viewer.c:29:33: error: X11/extensions/XShm.h: No such file or directory ...... So I fetched the headers and [after many more failed attempts at compiling] decided to store them in: Code: /usr/X11R6/lib/X11/extensions /usr/X11R6/lib/X11 /usr/X11R6/lib /usr/X11R6/include/X11 /usr/X11R6/X11 All at the same time ! But the compile error message remains the same Can anyone help, please. Adv Reply April 24th, 2011 #2 SevenMachines View Profile View Forum Posts Private Message Cake for coffee's sake Join Date Sep 2009 Beans 1,293 Re: Have loaded missing headers, but they are still reported missing ! You would need to add the -I (capital i) option to the compiler with the path to the includes, Code: -I/usr/X11R6/include/ More importantly though, it sounds like you've downloaded, compiled, and installed these libraries yourself, and you've installed them in the system directory hierarchy. This is a very bad idea, a
XTest and other dependencies) By ench0 On 23 August 2011 · 6 Comments If you don't know what xdotool is then this post is not for you… Although many distros come with a packaged xdotool it is usually pretty old version (e.g. the one that comes wiht FC15 does not have the selectwindow command!) so you will most likely want to get the source tarball and install that. Download it from here. - 1 - After you untar and ‘make' you will likely get some errors due to missing dependencies and due to Makefile referring to old include locations, with the first error most likely being: xdo.c:24:22: fatal error: X11/Xlib.h: No such file or directory This most likely means that the X11 development lib is not installed (I said "most likely", because even if it were - the xdotool Makefile is a bit broken as it refers to the old locations for the X11 libs. Read below how to fix that problem - for now we'll be dealing with the possibly missing libs). The missing lib is the X11 development lib. Depending on your distro it may be called e.g. libx11-dev (ubuntu), libX11-devel (fedora) or something similar. Use your package manager to install the lib and all dependencies that it says it needs. Make sure to install the DEVELOPMENT version of the library! - 2 - Now that libx11-dev is installed it's time to fix the Makefile. Edit the Makefile and search for -L. You should see two lines that look like this: DEFAULT_LIBS=-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst -lXinerama
DEFAULT_INC=-I/usr/X11R6/include -I/usr/local/include As you can see the lib and include paths refer to the old location for X11 libs. Fix this by prepending the correct paths : DEFAULT_LIBS=-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst -lXinerama
DEFAULT_INC=-I/usr/include/X11 -I/usr/X11R6/include -I/usr/local/include - 3 - Ok - now that we have the x11 lib and the paths are fixed lets ‘make' again! xdo.c:28:34: fatal error: X11/extensions/XTest.h: No such file or directory Damn! We need XTEST extensions… That one is a bit trickier as it may be found in all sorts of packages depending on the distribution. To find it on ubuntu use: apt-file search XTest.h On Fedora you can