[Magic-dev] Magic runtime problem

R. Timothy Edwards tim.edwards at multigig.com
Fri Apr 14 12:18:34 EDT 2006


Dear David,

> error in slave eval:
> couldn't load file "/usr/lib/tk8.4/../libtk8.4.so": 
> /usr/lib/tk8.4/../libtk8.4.so: cannot open shared object file: No such 
> file or directory

This looks like a Tcl/Tk installation issue.  Try running "tclsh"
and typing "package require Tk".  Also check whether "magic -noconsole"
works.  Finally, check what /usr/local/bin/magic sets MAGIC_WISH to.

The file to load is set by /usr/lib/tk8.4/pkgIndex.tcl.  If magic is
configured to find /usr/lib/tclConfig.sh, then it will search all
subdirectories of /usr/lib for files named "pkgIndex.tcl" and execute
them.

In this case, note that /usr/lib/tk8.4/../libtk8.4.so is, in fact,
equivalent to /usr/lib/libtk8.4.so.  So in spite of the error message,
it's not likely that the problem was in finding the file.  More likely
that the Tcl and Tk versions conflict, so that the libtk8.4.so can't
be loaded correctly.

The last thing to try is to do "tclsh" followed by the command (in Tcl)
"load /usr/lib/libtk8.4.so".

Here's what happens when you run "magic":
1) "magic" is a shell script.  It sets the variable MAGIC_WISH and
    executes "tkcon.tcl" (a Tcl/Tk script).
2) "tkcon" launches the executable pointed to by MAGIC_WISH.
3) "tkcon" spins off a slave interpreter which then attempts to
    load the Tk object library

You'll note that I haven't actually solved your problem.  The answer
is somewhere in all these variable settings, and is most likely related
to the setting of MAGIC_WISH and the location where "configure" found
the Tk and Tcl libraries when magic was compiled.  Looking at "config.log"
or running "configure" again in the magic source directory should show
if something bad happened, such as the "configure" script locating
incompatible versions of Tcl and Tk.

					Regards,
					Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: tim.edwards at multigig.com     |
| MultiGiG, Inc.                 | web:   http://www.multigig.com      |
| 100 Enterprise Way, Suite A-3  | phone: (831) 621-3283               |
| Scotts Valley, CA 95066        | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+



More information about the magic-dev mailing list