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

20060109: Installing ldm-mcidas-2004 (pnga2area) on Mac OS X 10.4 (cont.)



>From: Dave Dempsey <address@hidden>
>Organization: SFSU
>Keywords: 200601070616.k076Gx7s018370 ldm-mcidas MacOS-X

Hi Dave,

>(Another attempt, with attachments this time!)

OK.

>On Mon, 9 Jan 2006, Unidata Support wrote:
>
>> What version of the LDM?

>I've got LDM 6.4.4 installed.

OK.

>You suggested doing a "make distclean" and installing with CC=cc or CC=gcc
>instead of CC=c86. I tried both, each producing a similar result but a
>result different from the result when CC=c86. In particular, alarm.c
>compiles OK; now the failure occurs when creating the area2png executable
>(though area2png.o compiles OK).

The failure this time is different:

/usr/bin/ld: table of contents for archive: /usr/local/unidata/ldm/lib/libldm.a
is out of date; rerun ranlib(1) (can't load from it)

This means that you need to run 'ranlib' on the LDM library.

>The new debugging info is:
>
>   A. The output of "uname -a" is:
>Darwin ai-01 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct  3 20:04:04 PDT
>2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc
>   B. File VERSION is attached.
>   C. C compiler: /usr/bin/cc  (or is this a C++ compiler, or both?)
>      Fortran compiler: /sw/bin/g77 (does the installation know this?)
>   D. File configure.log is attached.
>   E. File config.log is attached.
>   F. File make.log is attached.

re: Is there any chance I could get a login to your machine so I could
poke around?

>Feel free! Here's what you need:
>The ldm-mcidas-2004 source is in:
>   /usr/local/src/ldm-mcidas-2004
>
>There's a symbolic link to it in:
>  /usr/local/unidata/
>
>(There are symbolic links to various other Unidata packages there too,
>though besides the LDM itself I've been able to install only netcdf and
>netcdf-perl successfully so far.)
>
>The ldm home directory is in /Users/ldm (with symbolic links to it from
>/usr/local/unidata/ldm and /usr/local/ldm).

OK.  Here is what I did (which was not much):

<as 'ldm' on your machine>
cd /usr/local/src/ldm-mcidas-2004/src/decode
make pnga2area

Here I got the error that the table of contents for the LDM library was
out of date.  I fixed this using 'ranlib'

pushd /usr/local/unidata/ldm/lib
ranlib libldm.a
pushd
make pnga2area

Voila!  The 'pnga2area' executable now exists! and runs from the command
line:

./pnga2area
Example Usage:
       ./pnga2area <-a SATANNOT> <-b SATBAND> <-vxl-> IMGfile < infile
       ./pnga2area <-a SATANNOT> <-b SATBAND> <-vxl-> -d datadir -r pcode < 
infile
       ./pnga2area <-a SATANNOT> <-b SATBAND> <-vxl-> -f infile IMGfile
       ./pnga2area <-a SATANNOT> <-b SATBAND> <-vxl-> -f infile -d datadir -r 
pcode
Flags:
 ...


I also built 'area2png' although it is not needed.  Running a simple
make in the src/decode directory of ldm-mcidas-2004 failed when trying
to build nldn2md.  The failure was due to the cfortran interface not
knowing about MacOS-X (not suprising since I had not tried building
under MacOS-X).

Anyway, you now have what appears to be a functioning 'pnga2area' and
'area2png' (again, not needed) in /usr/local/src/ldm-mcidas-2004/src/decode.
Copy 'pnga2area' to a directory in your LDM user's PATH (like
/usr/local/unidata/decoders/bin) and setup its use in pqact.conf.

Please let me know if everything works.

Cheers,

Tom
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.

>From address@hidden  Mon Feb 27 16:50:24 2006

Tom (Yoksas),

I'm not sure that I ever responded to the request at the end of this
January 9 message to let you know if everything worked out OK.

It did--thanks for your intervention!

-- Dave

****************************************************************
*                                      |         __ __    \|/  *
*   Dr. Dave Dempsey                   | )   ^  /|| ||\  --0-- *
*   Dept. of Geosciences               |) ) ^  / ||_|| \  /|\  *
*   San Francisco State University     | ) )  /  | _ |  \      *
*   1600 Holloway Ave.                 |)   )/   || ||   \     *
*   San Francisco, CA   94132          | )   )   ||_||    \    *
*                                      |)  ) )   | _ |     \   *
*   Phone:  (415) 338-7716             |  )   )  || ||      \  *
*   FAX:    (415) 338-7705             |)   )  )~~~~~~~~~~~~~~~*
*   Email:  address@hidden   |  )  )  )  ~  ~   ~ ~  *
*                                      |)  )   ) )  ~   ~  ~   *
****************************************************************