Re: X11 library error

From: kurt poeppel <kurt_poeppel_at_nyahnyahspammersnyahnyah>
Date: Sat, 1 Jul 2006 01:20:49 -0700 (PDT)

Hi Jenny, Rick,

I ended up switching to the Ubuntu (Debian based) Linux distribution. I found that attempts to install packages (like X11R6 static libraries or the g77 fortran compiler) on Mandriva usually resulted in "dependency hell." I recently learned that "dependency hell" is the Linux lingo for searching for a package's dependent libraries, only to find that those libraries have many dependent libraries, and so forth. Once I learned about Debian's "apt-get" feature, I was sold immediately. After some practice with "apt-get" and Debian's online list of packages (instead of the rpm's for RedHat-based distributions), I managed to install all of the required X11R6 static libraries. This solved my persistent X11 library error when compiling and linking.

One word of caution to Ubuntu users: for some reason, Ubuntu puts the X11R6 libraries in /usr/lib instead of /usr/X11R6 where they normally are.

Thank you for your help.

Kurt Poeppel

B.S. Meteorology 2003, Valparaiso University
M.S. Atmospheric Science 2005, SDSM&T

Jenny Fox <Jenny.Fox_at_noaa.gov> wrote: Hi Kurt.

I think this was my post that you're referring to. At first I
installed the static versions from xfree86 but it broke Xwindows on
other parts of my machine. So if you're running Red Hat, the easiest
way to fix this is to install the developers x11 rpm. The current
one is:

xorg-x11-devel-6.8.2-1.EL.13.25.1

That fixed both my ncarg problems and my other X problems.
Apparently only the developers rpm includes the static libraries.

--jenny

On Jun 20, 2006, at 3:41 PM, kurt poeppel wrote:

> Rick Grubin,
>
> I found this article in the archives of NCARG Talk. I
> have the exact same problem:
> **************************************************
>
> Hello,
>
>> I just installed NCAR graphics under Redhat 9, and
> when I test it by
>> running ncargex I get the following:
>> [pbatra_at_localhost ~]$ ncargex cpex08
>> NCAR Graphics Fortran Example
>> Copying cpex08.f
>> Copying cpexcc.f
>> Compiling and linking...
>> g77 -O -o cpex08 cpexcc.f cpex08.f
> -L/usr/local/ncarg/lib
>> -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11
> -lXext
>> /usr/bin/ld: cannot find -lX11
>> collect2: ld returned 1 exit status
>
> The error you're seeing, and the listing of X11
> libraries [deleted] you
> provided, indicate that you don't have installed
> static versions --
> that is, non-shared versions -- of these libraries.
> You have shared
> object libraries ("*.so") and the NCAR Graphics
> applications are
> expecting static ("*.a") libraries.
>
> You can install the static versions of libraries on
> your host by
> visiting the XFree86 Project website at:
> www.xfree86.org
> and downloading the appropriate distribution for your
> host. There are
> both ftp and http servers available. You may download
> the latest
> version (v4.5.0), but there are links to older
> distributions. At the
> very least, you want v4.1.0
>
> -Rick.
>
> ***********************************************
> I tried installing the new libaries from
> www.xfree86.org, but it just replaced the old
> shared-object libraries with new shared-object
> libraries. Not only that, but it crashed X11 and my
> OS. Luckily I didn't lose any data. I'm relatively
> new to Linux. Is there some way I can set up NCARG to
> use the shared-object libraries? Is there an easier
> way to get static libraries?
>
> Thank you for your help,
>
> Kurt Poeppel
> B.S. Meteorology 2003, Valparaiso University
> M.S. Atmospheric Science 2005, SDSM&T
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk

                 
---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.

_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Sat Jul 01 2006 - 02:20:49 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 05 2006 - 09:40:40 MDT