Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gembud] GEMAPAK 10.5.4 under ubuntu Linux



Greg,

You error shown is: "cannot find -lXmu"

If you have the Xmu libraries on your system, then try uncommenting the 
line for shareable Motif libraries in the Makinc file and comment out
the 
static entry. The libXm.a has dependencies on libXmu but the static
link may be making it difficult to resolve the dependencies in the
correct order.

Steve Chiswell
Unidata User Support

On Sun, 2007-12-09 at 00:00 -0600, gregory.carbin@xxxxxxxx wrote:
> Hi GEMBUDS,
> 
> After a number of tries with gfortran I finally got most of GEMPAK to
> compile from source using g77 instead. The only apps that failed to
> compile are the following:
> 
> make[5]: *** [nalarm] Error 1
> make[5]: *** [ncolor] Error 1
> make[5]: *** [nfax] Error 1
> make[5]: *** [nmap2] Error 1
> make[5]: *** [nsharp] Error 1
> make[5]: *** [ntl] Error 1
> make[5]: *** [ntrans] Error 1
> make[5]: *** [nwx] Error 1
> make[3]: *** [nmap_kiosk] Error 1
> make[2]: *** [linux/garp] Error 1
> 
> The problem seems to be related to the location of libXm.a and files
> that are expected to be located in /usr/X11R6/lib/. These are instead in
> /usr/lib/. First I tried symbolically linking to the existing files but
> that drew a complaint from the compiler that there were too many links.
> I tried copying over the files to /usr/X11R6/lib/ but that didn't work
> either. Finally, I searched the GEMBUD lists and found a mod to
> Makeinc.linux_g77 that describes where the MOFTIFLIBS are in more recent
> Linux distros. That just gets me the following error when compiling
> ncolor (for example):
> 
> g77 -fno-second-underscore -I/home/gempak/GEMPAK5.10.4/gempak/include
> -I/home/gempak/GEMPAK5.10.4/os/linux/include -O    -o ncolor ncolor.o\
>                 /home/gempak/GEMPAK5.10.4/os/linux/lib/ginitp_alt.o
> /home/gempak/GEMPAK5.10.4/os/linux/lib/gendp_alt.o
> /home/gempak/GEMPAK5.10.4/os/linux/lib/Nxmlib.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/gemlib.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/gplt.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/device.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/xwp.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/xw.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/ps.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/gn.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/gemlib.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/cgemlib.a
> /home/gempak/GEMPAK5.10.4/os/linux/lib/gemlib.a \
>                 -L/usr/lib /usr/lib/libXm.a -lXm -lXmu -lSM -lICE -lXp
> -lXext -L/usr/lib -lXt -lX11 -lm
> /usr/bin/ld: cannot find -lXmu
> collect2: ld returned 1 exit status
> make: *** [ncolor] Error 1
> 
> I wonder if anyone else has run into this problem and if you know of an
> easy fix?
> 
> Thanks for reading this.
> 
> Greg Carbin
> NWS/Storm Prediction Center
> Norman, OK
> _______________________________________________
> gembud mailing list
> gembud@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: http://www.unidata.ucar.edu/mailing_lists/ 
-- 
Steve Chiswell <chiz@xxxxxxxxxxxxxxxx>
Unidata


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690