LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Missing libX11.a (https://www.linuxquestions.org/questions/linux-software-2/missing-libx11-a-594548/)

holland6 10-25-2007 11:32 AM

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!

colucix 10-26-2007 04:48 AM

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

holland6 10-26-2007 08:03 AM

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.

colucix 10-26-2007 08:41 AM

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.

holland6 10-26-2007 10:28 AM

My libX11.so came from this rpm: libX11-devel-1.0.3-8.0.1.el5

Thanks.


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