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

[McIDAS #JAX-852168]: McIDAS - Linking Error



Hi Ron,

> Institution: Duke University
> Package Version: current
> Operating System: SuSE Linux 9.3
> Hardware Information: AMD 64

re:

> I get the follow error when trying to compile and link McIDAS on x86_64 
> platform.
> 
> g77 -s -O -o mctext mct.o mct_ebuf.o mct_obuf.o mct_sbuf.o mct_win.o 
> mct_winc.o mct_winx.o mcterm.o -L. -L/usr/X11R6/lib64 -L/usr/X11R6/lib 
> -lmcidas -lXt -lX11 -lcurses -ldl -lm
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
>  cannot find -lcurses
> collect2: ld returned 1 exit status
> link    mctext:                 FAILED

The error being reported indicates that the curses library is not being found 
by the linker.
I believe that installation of curses is optional in Linux.  If I am correct, 
you should
install the package and then restart the McIDAS build.

Just so you know, I routinely build McIDAS-X v2005 on my 64-bit Fedora Core 4 
Linux workstation.
On this machine, the curses library is found in /usr/lib as a link to 
libncurses:

% cd /usr/lib
/usr/lib% ls -alt libcurses*
lrwxrwxrwx  1 root root 12 Aug  8 10:00 libcurses.a -> libncurses.a
lrwxrwxrwx  1 root root 13 Aug  8 10:00 libcursesw.a -> libncursesw.a
lrwxrwxrwx  1 root root 17 Aug  8 09:59 libcurses.so -> libncurses.so.5.4*
lrwxrwxrwx  1 root root 18 Aug  8 09:59 libcursesw.so -> libncursesw.so.5.4*

It may be the case that the libcurses.a -> libncurses.a link does not exist on 
your system.
If it does not, you can add it in the manner listed above (as 'root').

> Thanks,

No worries.

Cheers,

Tom
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                 http://www.unidata.ucar.edu/esupport
****************************************************************************


Ticket Details
===================
Ticket ID: JAX-852168
Department: Support McIDAS
Priority: Normal
Status: Closed