[Xotcl] Re: [Xotcl] Xotcl on Windows?

Gustaf Neumann Gustaf.Neumann at wu-wien.ac.at
Thu Jan 4 14:19:17 CET 2001


>>>>> "DL" == David LeBlanc <whisper at oz.net> writes:

DL> Hi;
DL> I am so far unable to run any of the sample programs or get gdbm or qgdbm or
DL> whatever to run. There seems to be many steps in installing xotcl that are
DL> not described in the installwin readme.

DL> I have installed the software, fixed a bug in the makefile.vc that causes
DL> auto_path to be wrong in the built make file (INSTALLDIR is defined, but
DL> INSTDIR is used in the lib path macro).

DL> Then, I ran installwin.tcl.

DL> Then, even though not in the instructions, I ran make.xotcl in the new
DL> /tcl/lib/xotcl dir.

 Dear David,

 incidentially, yesterday, I ran into similar problems as you
 describe. There seems to be a few things messed up in the win binary 
 distribution that we should fix asap.

 * first of all, the binary dll of gdbm that is included in the 
   distribution is called 
     libgdbm.dll
   and not like the unix-version 
     libtclgdbm.so
   (maybe due to the classical 8+3 name restriction?)
   Please rename the dll to 
     libtclgdbm.dll
   such it matches the name mentioned in
     lib\xotcl\pkgIndex.tcl

  * secondly, the dll seems to require Tcl 8.2. Please, install
    Tcl 8.2 (in can be installed in parallel to Tcl 8.0 and 8.3 etc).

  * thirdly - this does not seem to affect you, since you compiled
    xotcl yourself - it seems to me that the binary of xotclsh
    requires Tcl 8.3 (That means, to you the binary distribution,
    you need Tcl 8.2 and 8.3 installed)

 running make.xotcl manually should not be neccessary.

DL> Then, I ran qgdbm0.3/install.tcl - something else not in the instructions,
DL> but it looked right.

 this should not be necessary.

DL> Now, whenever I try to run almost any example program (in awo etc.) I get
DL> errors. In the case of awo/webdocument.xotcl it says it can't find
DL> webagent.xotcl. This file is in the mos dir.

DL> Trying to run any of the store files gets a very curious problem:
DL> couldn't load library "K:\tcl\lib\tcl8.3\gdbm0.3\libtclgdbm.so": this
DL> library or a dependent lib
DL> rary could not be found in library path
DL>     while executing
DL> "load K:/tcl/lib/tcl8.3/gdbm0.3/libtclgdbm.so"
DL>     ("package ifneeded" script)
DL>     invoked from within
DL> "package require -exact gdbm 0.3"
DL>     (file "qgdbm.tcl" line 28)

 The .so filename is hardcoded in the gdbm distribution.
 to be on the safe side, remove the pkgIndex.tcl file from
 gdbm0.3 (and undo the results of the install file, e.g. remove 
 K:/tcl/lib/tcl8.3/gdbm0.3/)

DL> Firstly, this is windows and the shared lib extension is "dll", not "so".
DL> (the .so error is in tcl/lib/xotcl/qgdbm0.3/pkgIndex.tcl file - hard coded
DL> shared lib extension. (Curiously, the pkgIndex.tcl in the sources doesn't
DL> have this problem - in fact it looks completely different.)) Secondly
DL> whatever extension you use, there is no libtclgdbm.dll or .so file anywhere!
DL> I have a tclgdbm.dll, a libgdbm.dll and a gdbm.dll, but no libtclgdbm.dll.
DL> Which is which and where should they go?

DL> Another problem is with trying to run counter.xotcl in the
DL> /tcl/src/xotcl/apps dir - again, I get a package not found error: in this
DL> case, htmlplace.xotcl. It's almost like Xotclsh or XoWish don't do a
DL> pkgIndex search in any of the lib/xotcl dirs or subdirs.


 have you set TCLLIBPATH to something like
   set TCLLIBPATH=c:/Programms/Tcl/lib/xotcl

 Please, note the slashes and do not use backslashes!


DL> If anyone can tell me how to get all this running on windows I would be VERY
DL> greatful.

DL> Thanks,

 Hope, this helps

 best regards

 -gustaf neumann

 PS: Please send the modified makefile.vc to me or to uwe.
 PPS: I will talk to Uwe to bring out an improved win binary asap.

DL> Dave LeBlanc


DL> _______________________________________________
DL> Xotcl mailing list  -  Xotcl at wi.wu-wien.ac.at
DL> http://wi.wu-wien.ac.at/mailman/listinfo/xotcl




More information about the Xotcl mailing list