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

20020723: installing UDUNITS on Linux: assigning variable values



Setou,

> To: address@hidden
> From: Setou Takashi <address@hidden>
> Subject: install udunits package
> Organization: National Research Institute of Fisheries Science, Japan
> Keywords: 200207230520.g6N5Kh912497 UDUNITS Linux

The above message contained the following:

> I want to install UDUNITS package, but can not.
> 
> I tried to install this package the follows.
> 
> $ uname -a
> Linux pc45.nrifs-k.affrc.go.jp 2.2.19-0vl0.24 #1 Tue Mar 12 17:09:50 JST 2002 
> i686 unknown
> $ CPPFLAGS=-Df2cFortran

Good.  The C macro "f2cFortran" must be defined on a Linux system.

> $ CC=gcc
> $ CFLAGS=-O
> $ FC=g77
> $ FFLAGS=-O
> $ PERL=/usr/bin/perl
> $ ./configure
> $ make 
> cc -c -O -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/usr/local/udunits-1.11.7/etc/udunits.dat"'  utlib.c

Strange. "-Df2cFortran" should appear in the above command but doesn't.
Also, "cc" is the compiler rather than "gcc". I suspect that the above
values were put into shell variables rather than into environment
variables.

To assign a value to an environment variable, do one of the following

    export CPPFLAGS=-Df2cFortran

or

    CPPFLAGS=-Df2cFortran
    export CPPFLAGS

or

    setenv CPPFLAGS Df2cFortran

depending on your user shell.

Please try the following:

    1.  Go to the top-level source directory.

    2.  Perform steps 3 and 4 described near the end of the file
    INSTALL.
    
    3. Perform step 5 described near the end of the file INSTALL. Ensure
    that the values are assigned to environment variables and not shell
    variables.

    4.  Perform steps 6 through 9 described near the end of the file
    INSTALL.

Please let me know if this helps.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>