[Magic-dev] Magic runtime problem

Jeff Sondeen sondeen at ISI.EDU
Wed Apr 19 11:08:19 EDT 2006


Hi, i solved a similar problem (getting the dir '/usr/lib64' to be
first in the search order) with this:


% diff ./lib/magic/tcl/tkcon.tcl~ ./lib/magic/tcl/tkcon.tcl
4a5,13
> 
> #jws: 
> 
> #set auto_path [linsert $auto_path 0 /usr/lib64 ]
> #set auto_path
> puts stderr "old auto_path: $auto_path"
> set auto_path [lreplace $auto_path 2 2]
> puts stderr "new auto_path: $auto_path"
> 


R. Timothy Edwards writes:
 > 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               |
 > +--------------------------------+-------------------------------------+
 > 
 > _______________________________________________
 > magic-dev mailing list
 > magic-dev at vlsi.cornell.edu
 > http://vlsi.csl.cornell.edu/mailman/listinfo/magic-dev



More information about the magic-dev mailing list