Re: install problems for Ncarg + NCL on Mandriva LE 2005

From: Rick Grubin (grubin AT ucar.edu)
Date: Wed Nov 02 2005 - 13:33:56 MST

  • Next message: Rick Grubin: "Re: install problems for Ncarg + NCL on Mandriva LE 2005"

    Hi Marjolaine

    > I am struggling to install NCARG and NCL on mandriva LE 2005. I have
    > been following the method described by Zhuanshi He on his email of the
    > 14 October 2005.

    I've reviewed that posting to 'ncl-talk'

    > After running "make Everything >&make-output", I get an error in
    > make-output at the "Making ./ncarview/src/bin/ctrans" stage. Here is
    > an extract of the 1st error. Similar errors follow in ictrans.
    > --------------------------------------
    > Making ./ncarview/src/bin/ctrans
    > make[5]: Entering directory
    > `/usr/local/ncarg-4.4.1/ncarview/src/bin/ctrans'
    > gcc -ansi -O -I../../../.././include -I/usr/X11R6/include
    > -I/usr/local/hdf/include -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
    > -DByteSwapped -DNeedFuncProto -c -o main.o main.c
    > gcc -ansi -O -o ctrans main.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-4.4.1/lib -L/usr/X11R6/lib -L/usr/local/hdf/lib
    > -lX11 -lXext -lmfhdf -ldf -ljpeg -lz -lm
    > main.o(.text+0xc4): In function `open_log':
    > : warning: the use of `mktemp' is dangerous, better use `mkstemp'
    > /usr/local/hdf/lib/libdf.a(hcomp.o)(.text+0x1145): In function
    > `HCget_config_info':
    > : undefined reference to `SZ_encoder_enabled'
    > /usr/local/hdf/lib/libdf.a(cszip.o)(.text+0x378): In function
    > `HCPcszip_write':
    > : undefined reference to `SZ_encoder_enabled'
    > /usr/local/hdf/lib/libdf.a(cszip.o)(.text+0x497): In function
    > `HCIcszip_staccess':
    > : undefined reference to `SZ_encoder_enabled'
    > /usr/local/hdf/lib/libdf.a(cszip.o)(.text+0x794): In function
    > `HCIcszip_decode':
    > : undefined reference to `SZ_BufftoBuffDecompress'
    > /usr/local/hdf/lib/libdf.a(cszip.o)(.text+0xb54): In function
    > `HCIcszip_encode':
    > : undefined reference to `SZ_encoder_enabled'
    > /usr/local/hdf/lib/libdf.a(cszip.o)(.text+0xd7b): In function
    > `HCIcszip_term':
    > : undefined reference to `SZ_BufftoBuffCompress'
    > collect2: ld returned 1 exit status
    > make[5]: *** [ctrans] Error 1
    > make[5]: Leaving directory
    > `/usr/local/ncarg-4.4.1/ncarview/src/bin/ctrans'

    The above errors are specifically referencing missing symbols (SZ_...)
    in one library: /usr/local/hdf/lib/libdf.a

    This would indicate that you've built the HDF libraries with 'szip'
    compression, and the szip library. If that's the case,
    the NCAR Graphics build will expect to see that library at compile/link
    time. Note the end of the link stage:

    > -lmfhdf -ldf -ljpeg -lz -lm

    -lmfhdf and -ldf are HDF-related libraries, -ljpeg is the jpeg
    compression library, -lz the zip compression library (all used
    by the HDF tools). You'll need to link in the szip library ('-lsz') if
    you want to continue along this path. To do this, you can
    do one of two things:
         1. change the Makefiles located in
    $NCARG_ROOT/ncarview/src/bin/{everything under this} as they'll all
    have the same
             definition for HDF libraries (which does not include '-lsz'),
    and rebuild in each directory

         2. change the definition of HDFLIB in the file
    $NCARG_ROOT/config/Project to include '-lsz' and then re-run Configure
             and remake everything. This is definitely the "right way" to
    do things if you want szip compression, but also more
             time-consuming,

    You can also rebuild the HDF libs *without* szip (it's not required)
    and that will solve the problem in an easier way. To do
    this, do not use the "--with-szlib" option to configure when building
    the HDF libs. The configure process will detect this
    and suppress using it.

    > --------------------------------------
    >
    > When attempting to run ncl, I get the following error:
    >
    > ncl: error while loading shared libraries: libssl.so.4: cannot open
    > shared object file: No such fileor directory.

    NCL is looking for the 'secure socket layer' (ssl) shared library. You
    can set the environment variable LD_LIBRARY_PATH
    to include the directory where libssl.so exists:

         setenv LD_LIBRARY_PATH /path/to/where/libssl/exists

    -Rick.

    ----
    Rick Grubin      NCAR/CISL/SCD/VETS
    Visualization + Enabling Technologies
    grubin@ucar.edu             303.497.1832
    

    _______________________________________________ ncarg-talk mailing list ncarg-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



    This archive was generated by hypermail 2b29 : Wed Nov 02 2005 - 21:25:03 MST