LinuxQuestions.org
Review your favorite Linux distribution.
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, 09: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, 09:43 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
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, 02: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, 03:08 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
What did you install? Ubuntu, Fedora, Debian, Mint, Gentoo, Slackware, Arch, etc. That's your distro.
 
Old 08-02-2011, 03: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, 06:16 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
" 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 06:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:52 PM
Make file error 127 ./config.status: No such file or directory przemekfilu Linux - Newbie 4 11-17-2010 03:06 AM
installing qmake X11/Xlib.h: No such file or directory eolmsan Linux - Newbie 3 12-01-2008 05:09 AM
cannot stat /etc/X11/X (no such file or directory) theabyyss Linux - Software 2 02-12-2008 08:15 PM
error while trying to install program: "X11/Xlib.h: No such file or directory" nate1 Linux - Newbie 3 05-21-2004 09:08 AM


All times are GMT -5. The time now is 12:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration