Re: a new user's question

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 15 Jul 2009 23:21:02 -0600 (MDT)

Xianghui,

I highly recommend installing NCL from a precompiled binary and not
source code. I believe there's a yum installation NCL that you can
try.

Otherwise, you have a Linux system, and we provide binaries for
several Linux/compiler combinations. I recommend getting a non-OPeNDAP
enabled binary.

To determine which binary you need, on your Linux machine type:

    uname -m
    gcc --version

If "uname -m" reports "x86_64", then you need a 64-bit version. If it
reports something like "i386", then you need a 32-bit version.

"gcc --version" will give you the gcc version.

Here are the various binaries we provide. Hopefully one of them
matches your system:

   32-bit binary for i686 chips for LINUX (compiled with gcc 4.1.2)
   32-bit binary for i686 chips for LINUX (compiled with gcc 4.3.2)
   64-bit binary for IA64 chips for LINUX (compiled with gcc 4.1.2)
   64-bit binary for x86_64 chips for LINUX (compiled with gcc 3.3.0)
   64-bit binary for x86_64 chips for LINUX (compiled with gcc 4.1.2)
   64-bit binary for x86_64 chips for LINUX (compiled with gcc 4.2.2)
   64-bit binary for x86_64 chips for LINUX (compiled with gcc 4.3.2)

Once you download the file, go to:

  http://www.ncl.ucar.edu/Download/install.shtml

for instructions.

--Mary

On Thu, 16 Jul 2009, Xianghui Xue wrote:

> Hi, sorry for troubling you!
>
> I am a new user of NCL. I try to install ncl_ncarg-5.1.1 on Ubuntu 7.10
> according to the install direction of NCL. Before install NCL, I
> installed the needed software and lib such as JPEG, Zlib, netcdf-4 (with
> HDF5), and when I installed the HDF-4.0 (ver 4.2r4), problem started:
>
> when typing:
> -------------------------------------------------------------------------------------------------
> ./configure --prefix=/usr/local --with-zlib=/usr/local \
> --with-jpeg=/usr/local --includedir=/usr/local/include/hdf \
> --disable-netcdf
> make all install
> --------------------------------------------------------------------------------------------------
> and the result is :
> .......
> libtool: link: gcc -O3 -fomit-frame-pointer -o ncgen close.o escapes.o
> generate.o genlib.o getfill.o init.o load.o main.o ncgentab.o
> -L/usr/local/lib ../libsrc/.libs/libmfhdf.a ../../hdf/src/.libs/libdf.a
> /usr/local/lib/libjpeg.so -lz -lm
> ncgentab.o: In function `main':
> ncgentab.c:(.text+0x0): multiple definition of `main'
> main.o:main.c:(.text+0x30): first defined here
> main.o: In function `main':
> main.c:(.text+0x55): undefined reference to `yyin'
> main.c:(.text+0x7d): undefined reference to `yyout'
> main.c:(.text+0x1a9): undefined reference to `yyin'
> ncgentab.o: In function `yyparse':
> ncgentab.c:(.text+0x580): undefined reference to `yylex'
> collect2: ld returned 1 exit status
> make[2]: *** [ncgen] error 1
> make[2]:Now leaving dir `/mnt/hgfs/NCAR/Linux/HDF4.2r4/mfhdf/ncgen'
> make[1]: *** [all-recursive] error 1
> make[1]:Now leaving dir `/mnt/hgfs/NCAR/Linux/HDF4.2r4/mfhdf'
> make: *** [all-recursive] error 1
> -----------------------------------------------------------------------------------------------------
>
> I have installed the m4, flex and bison, I don't know how to figure it
> out!
>
> Can you give me some advice?
>
> Best wishes
> ---------------------------------------------------
> Xianghui XUE
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 15 2009 - 23:21:02 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 17 2009 - 15:27:02 MDT