[Magic-dev] magic install issue with redhat Fedore core 3 linux 64bit

Jeff Sondeen sondeen at ISI.EDU
Thu Sep 1 15:02:28 EDT 2005


Hi, here's 2 install notes for the 'tcl' variant of magic 7.3 on the
64bit version of redhat Fedore core 3 linux:

1) i had to tell the ./configure script where to find the
'tclConfig.sh' script, else when configure looked inside '/usr/lib'
and didn't find tclConfig.sh, it declines to install the 'tcl'
variant.

./configure --prefix=/home/sondeen/linux/magic --with-tcl=/usr/lib64 --with-tk=/usr/lib64

2) since the Fedora core install seems to set the Tcl built-in
variable 'auto_path' having '/usr/lib' before '/usr/lib64' (and on
64bit Fedora, there's nothing in '/usr/lib' for tcl, only in '/usr/lib64'),

i had to put a crude fix:

 set i [ lsearch $auto_path /usr/lib ]
 set j [ lsearch $auto_path /usr/lib64 ]
 puts stderr "old auto_path: $auto_path"
 puts stderr "i: $i j: $j"
 if {$i >= 0 && $j >= 0 && $i < $j} {
   set auto_path [lreplace $auto_path $i $i /usr/lib64 ]
   set auto_path [lreplace $auto_path $j $j /usr/lib ]
 }
 puts stderr "new auto_path: $auto_path"


(your mileage may vary, i'm sure there are better fixes)

into:

 /home/sondeen/linux/magic/lib/magic/tcl/tkcon.tcl:

just after the start lines:

  #!/bin/sh
  # \
  exec ${MAGIC_WISH:=wish} "$0" ${1+"$@"}



else on magic startup, it says:

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

/jeff


More information about the magic-dev mailing list