[ncl-install] NCL 5.0.0 ictrans compilation Error

Mary Haley haley at ucar.edu
Wed Dec 3 06:21:48 MST 2008


Nguyen,

You may be able to get by without needing -lg2c and -lgcc.

Edit the file $NCARG/config/LINUX and remove them from the  
CtoFLibraries line, and then rerun "make Everything".

--Mary

On Dec 3, 2008, at 4:27 AM, Quang Nguyen wrote:

> Dear ALL,
>
> I get the following error when installing NCL 5.0.0 with source code.
>
> make[5]: Entering directory `/home/quang/NCL_Setup/ncl_ncarg-5.0.0/ 
> ncarview/src/bin/ictrans'
> gcc -ansi -fPIC  -O    -o ictrans main.o ../../../.././ncarview/src/ 
> lib/libictrans/libictrans.o ../../../.././ncarview/src/lib/libctrans/ 
> libctrans.o -L../../../.././ncarview/src/lib/libcgm -lcgm - 
> L../../../.././ncarview/src/lib/libncarg_ras - 
> lncarg_ras                    -L../../../.././common/src/libncarg_c - 
> lncarg_c -L/usr/local/ncarg/lib -L/usr/X11R6/lib -lX11 -lXext   - 
> lmfhdf -ldf -ljpeg -lz -lg2c -lgcc -L/opt/intel/fce/10.1.012/lib - 
> lifort -lm
> /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/ 
> bin/ld: cannot find -lg2c
> collect2: ld returned 1 exit status
> make[5]: *** [ictrans] Error 1
>
> --
> I also setup the g2clib as the guidance from http://www.ncl.ucar.edu/Download/build_from_src.shtml
>
> How can I resolve this trouble?
> Many thanks.
>
> Nguyen Dang Quang
> Vietnam National Center for Hydrometeorological Forecast(NCHMF)
> 4 Dang Thai Than, Hanoi, VIETNAM
> Tel.:84-4-9330942
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install



More information about the ncl-install mailing list