LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 02-10-2007, 10:27 PM   #1
TSloth
Member
 
Registered: Oct 2002
Location: Houston, Texas
Posts: 97

Rep: Reputation: 15
need Xlib.h and Xutil.h


I am trying to install pgplot5 on Kubuntu Edgy. In the 'make' step it generates these messages:
gcc -c -Wall -fPIC -DPG_PPU -O -I. -I/usr/X11R6/include /usr/local/src/pgplot/drivers/xwdriv.c
/usr/local/src/pgplot/drivers/xwdriv.c:128:22: error: X11/Xlib.h: No such file or directory
/usr/local/src/pgplot/drivers/xwdriv.c:129:23: error: X11/Xutil.h: No such file or directory


I've searched /usr on down and don't have the files Xlib.h and Xutil.h. What package do I need to install to get these files?

I would appreciate any helpful answers but if they were geared toward someone who is a newbie with Synaptic, apt-get and gcc that would be most appreciated.

Thank you,
- TSloth
 
Old 02-10-2007, 11:31 PM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
both are in libx11-dev,
You may also need xlibs-dev, xlibs-static-dev, and xorg-dev
 
Old 02-11-2007, 12:15 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
While your at it install the checkinstall package so you can use it in place of the make install step to build a .deb file you can install with dpkg -i file.deb depending on the options set in the /etc/checkinstallrc it will be automatically installed. To build the .deb use a command line like this replacing the obvious parts with the correct package name, version number and your name.

Code:
checkinstall -D --pkgname=name --pkgversion==1.2.3 --maintainer="Your Name your@email.com"
You want to install the apt-file package as well this allows you to search to find which package contains the file you need when getting a compile error "not found". You need to run apt-file update as root (good to do every once in a while) to update its cache then you can search with in your case above apt-file search X11/Xlib.h to get a result like below.

Code:
apt-file search X11/Xlib.h
ghc-cvs-libsrc: usr/share/doc/ghc-cvs-libsrc/X11/Graphics/X11/Xlib.hs
ghc6: usr/lib/ghc-6.4.1/imports/Graphics/X11/Xlib.hi
ghc6: usr/lib/ghc-6.4.2/imports/Graphics/X11/Xlib.hi
ghc6-libsrc: usr/share/doc/ghc6-libsrc/X11/Graphics/X11/Xlib.hs
ghc6-libsrc: usr/share/doc/ghc6-libsrc/X11/Graphics/X11/Xlib.hs
hugs: usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
hugs: usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs
ivtools-dev: usr/include/IV-X11/Xlib.h
libx11-dev: usr/include/X11/Xlib.h
libx11-dev: usr/include/X11/Xlib.h
Which as the post above tells you shows the needed libx11-dev in the results.
 
Old 02-11-2007, 12:23 AM   #4
TSloth
Member
 
Registered: Oct 2002
Location: Houston, Texas
Posts: 97

Original Poster
Rep: Reputation: 15
Thank you binary_y2k2, that did it!

Thank you HappyTux for the tips for doing it better in the future.

- TSloth
 
  


Reply

Tags
compile, include


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
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Linux - Newbie 10 02-07-2014 12:53 AM
Xlib.h and Xutil.h mrHoff Linux - Newbie 4 05-23-2006 03:11 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Programming 1 03-02-2004 08:22 AM
Xlib help what to do? micxz Linux - General 4 03-10-2003 01:39 PM
Xlib js72 Linux - Software 0 02-19-2003 11:09 PM


All times are GMT -5. The time now is 05:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration