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

Installing udunits on Mac OS 10.3.6

Hello -

I am trying to install nco via fink on MAC OS 10.3.6 and this requires
udunits. I have tried many things suggested out on the web, but it seems to
get stuck on the utlib.c file no matter what I do. Can you give me some
suggestions? Below is the information that I believe you need to get started
from an attempt to manually install.

Galen McKinley

[oaxaca:udunits-1.11.7-4/udunits-1.11.7/src] root# uname -a
Darwin oaxaca.aos.wisc.edu 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10
12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC  Power Macintosh

[oaxaca:udunits-1.11.7-4/udunits-1.11.7/src] root# make > make.log
utlib.c: In function `dectime':
utlib.c:420: `__DBL_MANT_DIG__' undeclared (first use in this function)
utlib.c:420: (Each undeclared identifier is reported only once
utlib.c:420: for each function it appears in.)
utlib.c: In function `utPrint':
utlib.c:1212: `__DBL_DIG__' undeclared (first use in this function)
make[1]: *** [utlib.o] Error 1
make: *** [lib/all] Error 1
[oaxaca:udunits-1.11.7-4/udunits-1.11.7/src] root# more make.log

making `all' in directory /sw/src/udunits-1.11.7-4/udunits-1.11.7/src/port

making `all' in directory

/usr/bin/gcc2 -c -O -I.  -D_REENTRANT -Df2cFortran uddummy.c
ar rcuv libudport.a uddummy.o
a - uddummy.o
case "" in \
'') ;; \
*)  ar rucv libudport.a ;; \
ranlib libudport.a

returning to directory /sw/src/udunits-1.11.7-4/udunits-1.11.7/src/port

making `all' in directory

make[2]: Nothing to be done for `all'.

returning to directory /sw/src/udunits-1.11.7-4/udunits-1.11.7/src/port

returning to directory /sw/src/udunits-1.11.7-4/udunits-1.11.7/src

making `all' in directory /sw/src/udunits-1.11.7-4/udunits-1.11.7/src/lib

ln -s ../port/misc/udalloc.c .
ln -s ../port/misc/udalloc.h .
/usr/bin/gcc2 -c -O -I../port/misc -I../port/cfortran
' -Df2cFortran utlib.c
[oaxaca:udunits-1.11.7-4/udunits-1.11.7/src] root#

Some environment variables that might be of importance are set as:

From address@hidden  Tue Nov 16 19:55:28 2004

Hello again - 

I've got this worked out. I found and installed the just-released
udunits-1.12.3 (unstable) with fink and then I could install nco. And it now

Galen McKinley