LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2007, 11:32 AM   #1
holland6
LQ Newbie
 
Registered: May 2006
Location: North Carolina
Distribution: RedHat EL/Fedora
Posts: 4

Rep: Reputation: 0
Missing libX11.a


I'm trying to compile a program and during the linking stage it says that it can't find -lX11. I have libX11.so, but I do not have libX11.a. I'm running Red Hat Enterprise 5. Does anyone have any idea how I can get or build libX11.a.

Thanks!
 
Old 10-26-2007, 04:48 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe this is not of great help, but on Red Hat Enterprise 4 I have the static library
Code:
/usr/X11R6/lib/libX11.a
coming from the package xorg-x11-devel-6.8.2-1.EL.19 which is the same that provides the shared one. Maybe in RHEL5 they don't include the static version anymore, but I'd check the integrity of the package by
Code:
rpm -V xorg-x11-devel
 
Old 10-26-2007, 08:03 AM   #3
holland6
LQ Newbie
 
Registered: May 2006
Location: North Carolina
Distribution: RedHat EL/Fedora
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply. However, xorg-x11-devel doesn't exist in the RHEL5 repositories. So, I'm still out of luck. I wonder if I added the RHEL4 repositories to my yum search if I could get it. But, I'm not sure exactly how to add a repository.
 
Old 10-26-2007, 08:41 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Hmmm... I think it would not be a good idea to add a RHEL4 repository, since a lot of things could have been changed between the two releases and this may result in some unpredictable behavior. Anyway, can you tell me the name of the package who provides the existing libX11.so? You can try
Code:
rpm -qf /usr/X11R6/lib/libX11.so
or whichever the location of the shared library is.
 
Old 10-26-2007, 10:28 AM   #5
holland6
LQ Newbie
 
Registered: May 2006
Location: North Carolina
Distribution: RedHat EL/Fedora
Posts: 4

Original Poster
Rep: Reputation: 0
My libX11.so came from this rpm: libX11-devel-1.0.3-8.0.1.el5

Thanks.
 
  


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
PHP GD problems: Missing libX11.so.6 => how to get it? BlackRabbit Linux - General 7 02-07-2010 09:01 AM
LibX11 problem in gtk Carez Debian 7 11-20-2008 01:08 PM
libX11 problem iankh Linux - Software 3 07-29-2004 06:30 PM
pango-1.0.5 can't find libX11.so.6, but it is on my system behmjose Linux - Newbie 3 02-21-2004 10:15 PM
libx11.so.6 and Tactical Ops greendemon Linux - Newbie 0 01-25-2004 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 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
Open Source Consulting | Domain Registration