Re: NCL installation errors using Intel compilers

From: Kantave Greene <kantave.m.greene_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 07 2011 - 14:08:03 MDT

This is how I solved the problem
I used the precompiled binaries but set the compiler options in
$NCARG/config/INTEL to:

#define HdfDefines -DLINUX
#define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
#define ByteSwapped
#define Cstatic
#define Cdynamic
#define CppCommand '/usr/bin/cpp -traditional'
#define CCompiler icc
#define FCompiler ifort
#define CtoFLibraries -lCEPCF90 -lF90 -lm -L/opt/intel/composerxe/lib/ia32
#define CcOptions -ansi
#define XToolLibrary -lXt -lSM -lICE
#define BuildShared NO
#define XLibrary -lXpm -lX11 -lXext

#define ArchRecLibSearch -L/usr/lib -L/usr/local/lib
-L/opt/intel/composerxe/lib/ia32
#define ArchRecIncSearch -I/usr/include -I/usr/local/include
-I/opt/intel/composerxe/include/ia32

The result is that ncl executable will be loacted in /usr/local/bin
instead of /usr/local/ncarg/bin
Hope this works for anybody else

On 6/7/2011 8:09 AM, Sooyoul Kim wrote:
> Dear all
>
> I am a beginner in NCL as well as Linux systems.
> The issue is the installation of NCL ver 6.0.0 using Intel compilers
> version 12.0.2 in CentOS5-64bit.
> I builded NCL with JPEG-6c, zlib-1.2.5, Netcdf-4.1.2 without netcdf-4
> and OPeNDAP, and HDF-4.2.5.
> My problems are that ncarg was installed but ncl was not installed.
>
> I slightly made a modification on the file of NclDataDefs.h with
> 'typedef int compound' to 'typedef int compound_ncl'.
> Then I rebuilded NCL and I got errors as follows:
>
> =================
> fortranio.o -L../../.././ni/src/lib/nfp -lnfp
> -L../../.././ni/src/lib/nfpfort -lnfpfort -L../../.././ni/src/lib/hlu
> -lhlu -L../../.././ncarg2d/src/libncarg -lncarg
> -L../../.././ncarg2d/src/libncarg_gks -lncarg_gks
> -L../../.././common/src/libncarg_c -lncarg_c
> -L../../.././ngmath/src/lib -lngmath
> -L/home/kim/src/ncl_ncarg-6.0.0/intel/lib -L/usr/lib64
> -L/usr/local/zlib-1.2.5/lib
> -L/opt/intel/composerxe-2011.2.137/bin/sourcechecker/lib/intel64/pinruntime/glibc
> -L/usr/local/netcdf-4.1.2/intel/lib -L/usr/local/hdf-4.2.5/intel/lib
> -lnetcdf -lpng -lz -L../../.././external/sphere3.1_dp
> -lsphere3.1_dp -L../../.././external/fftpack5_dp -lfftpack5_dp
> -L../../.././external/lapack -llapack_ncl -L../../.././external/blas
> -lblas_ncl -lXpm -lX11 -lXext
> -L/opt/intel/composerxe-2011.2.137/compiler/lib/intel64 -lm -lifcore
> -ldl -lm -ldl
> ld: warning: libimf.so, needed by
> /usr/local/netcdf-4.1.2/intel/lib/libnetcdf.so, not found (try using
> -rpath or -rpath-link)
> =================
>
> Could you tell me how I solve it?
>
> This is my configuration file.
>
>
> /*
> * Description: This file contains all the directives needed to
> * tell ymake how to build NCARG/NCL on a 64-bit Linux
> * system using the INTEL compilers.
> *
> * Copy this file to the LINUX file in this directory
> * before you start the NCL/NCARG build.
> */
> #define HdfDefines -DLINUX64
> #define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
> #define ByteSwapped
> #define Cstatic
> #define Cdynamic
> #define CppCommand '/usr/bin/cpp -traditional'
> #define CCompiler icc
> #define FCompiler ifort
> #define CtoFLibraries
> -L/opt/intel/composerxe-2011.2.137/compiler/lib/intel64 -lm -lifcore -ldl
> #define CcOptions -ansi
> #define COptimizeFlag -O3
> #define FOptimizeFlag -O3
> #define XToolLibrary -lXt -lSM -lICE
> #define BuildShared NO
> #define XLibrary -lXpm -lX11 -lXext
>
> #define ArchRecLibSearch -L/usr/lib64 -L/usr/local/zlib-1.2.5/lib
> -L/usr/local/netcdf-4.1.2/intel/lib -L/usr/local/hdf-4.2.5/intel/lib
>
> #define ArchRecIncSearch -I/usr/X11R6/include
> -I/usr/local/zlib-1.2.5/include
> -I/usr/local/netcdf-4.1.2/intel/include
> -I/usr/local/hdf-4.2.5/intel/include
>
> FC = $(F77)
>
> /*************** Redefine Macros from Rules
> ********************************/
>
> /*
> * Macro: MakeDir
> *
> * Description: This rule creates a directory - if a parent dir
> doesn't exist
> * it attempts to create it.
> */
> #ifndef MakeDir
> #define MakeDir(dir) @if (test ! -d dir); then ($(MKDIRHIER) dir); fi
> #endif
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

Received on Tue Jun 7 14:08:10 2011

This archive was generated by hypermail 2.1.8 : Tue Jul 12 2011 - 15:04:47 MDT