LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2011, 08:14 AM   #1
mswamy78
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Rep: Reputation: Disabled
error: X11/Xlib.h: No such file or directory


Hi,
I am trying to compile the code. I am getting this following error. Am I missing any package?

x86_screen.h:12:22: error: X11/Xlib.h: No such file or directory
In file included from osal_event.c:12:
x86_screen.h:25: error: expected specifier-qualifier-list before âDisplayâ
make[1]: *** [osal_event.o] Error 1


Please help

Thanks,
Swamy
 
Old 08-01-2011, 08:43 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Most likely. You are missing the development files for libX. Generally the development packages have the same name as the binary package except they will have -dev or -devel appended to them. If you told us what distro you were using, someone could probably tell you exactly which package to install. Or, better yet, how to figure it out on your own.
 
Old 08-02-2011, 01:40 AM   #3
mswamy78
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Please let me know how to check which distro I am using. Any command to check?
 
Old 08-02-2011, 02:08 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What did you install? Ubuntu, Fedora, Debian, Mint, Gentoo, Slackware, Arch, etc. That's your distro.
 
Old 08-02-2011, 02:35 AM   #5
mswamy78
LQ Newbie
 
Registered: Jul 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
It is ubuntu 9.02

$ uname -r
2.6.31-203-gee1fdae
 
Old 08-02-2011, 05:16 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
" 2.6.31 " : That's Ubuntu 9.10 : The command: 'cat /etc/issue' will show.

9.10 is unsupported, and has been moved to the "Ubuntu museum".

To install packages, you will have to change the URLs in /etc/apt/sources.list

to : http://old-releases.ubuntu.com/ubuntu/dists/
And then : sudo apt-get update && sudo apt-get install libx11-dev

..

Last edited by knudfl; 08-02-2011 at 05:19 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'/etc/x11': No such file or directory elliotash Linux - Newbie 2 03-13-2011 12:52 PM
Make file error 127 ./config.status: No such file or directory przemekfilu Linux - Newbie 4 11-17-2010 02:06 AM
installing qmake X11/Xlib.h: No such file or directory eolmsan Linux - Newbie 3 12-01-2008 04:09 AM
cannot stat /etc/X11/X (no such file or directory) theabyyss Linux - Software 2 02-12-2008 07:15 PM
error while trying to install program: "X11/Xlib.h: No such file or directory" nate1 Linux - Newbie 3 05-21-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration