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

20051102: McIDAS-X v2005 on FreeBSD 5.4 (cont.)



>From: Brendon Hoch <address@hidden>
>Organization: Plymouth State University
>Keywords: 200510312032.j9VKWr7s003036 McIDAS FreeBSD 5.4

Hi Brendon,

>Thanks for your efforts.

No worries.

>Looks like there might be a problem with mcwish finding Tcl libraries:
>
>%mcidas
>/libexec/ld-elf.so.1: Shared object "libtk8.4.so" not found, required by 
>"mcwish"
>
>%ldd mcwish
>mcwish:
>         libtk8.4.so => not found (0x0)
>         libtcl8.4.so => not found (0x0)
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x280f6000)
>         libg2c.so.1 => /usr/lib/libg2c.so.1 (0x281b5000)
>         libm.so.3 => /lib/libm.so.3 (0x281d2000)
>         libc.so.5 => /lib/libc.so.5 (0x281ed000)
>
>According to 
>http://www.unidata.ucar.edu/support/help/MailArchives/mcidas/msg01716.html 
>   Mcidas should come with it's own libraries for this purpose, correct?

Yes, the McIDAS distribution contains both Tcl and Tk source, and it is
built during the McIDAS build process.

I logged back onto your machine and started nosing around.  I verified
that the Tcl and Tk shared libraries _are_ correctly being installed in
~mcidas/tcl/lib.  The problem is that this location is not correctly
being "burned" into the mcwish executable, and it should be.

After a few minutes, I found a problem in the script used to build the
Tcl/Tk distribution, tclcomp.sh.  This file had an entry that was
specific for FreeBSD 4.x; it did not allow for the possibility of
FreeBSD 5.x.  After changing the file to include support for FreeBSD
5.x; doing 'make distclean' in both ~/mcidas2005/tcl/unix and
~/mcidas2005/tk/unix; running 'rm .built* tclcomp mcwish'; and finally
running make again, I was able to build a version of mcwish that knows
where to look for the Tcl and Tk libraries.

I verified that the rebuilt of mcwish works by starting a McIDAS
MCGUI session displayed back to my machine in Boulder.

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.