This is the old SliTaz forum - Please use the main forum.slitaz.org

[solved] running a tcl script - wish8.3 needed?
  • JingJing April 2010
    In my previous post I asked about csh. Since Slitaz does not seem to provide csh I am trying manually modify the csh script I wanted to run. I changed the script to use bash and immediatly I got another problem.

    The script tries to run a tcl script file and failed:

    ./installer.tcl: line 3: exec: wish8.3: not found

    The line 3 in above mentioned installer.tcl script has this:

    exec wish8.3 "$0" "$@"

    So my question is how do I get this wish8.3? Or maybe the system does not understand the "exec" part?

    I have installed packages for tcl and tcllib.

    Thanks!

  • seawolfseawolf April 2010
    From pkgs.slitaz.org searching for the the 'wish' file:
    tk
    The TCL gui toolkit
    /usr/bin/wish
    /usr/bin/wish8.5

    So, installing the tk package will provide wish8.5; you might get away with symlinking /usr/bin/wish8.3 => /usr/bin/wish8.5 afterward.

    Bash should understand `exec` as it's a program, IIRC.

    HIH.
  • erniaernia April 2010
    if you have tk installed you could modify the script to point to wish or create a symbolic lynk named wish8.3 pointing to /usr/bin/wish
    ln -s /usr/bin/wish /usr/bin/wish8.3

    if you have more issues with the shell zsh should be more c compatible.
    what kind of program are you trying to install?
    does debian have a package for it?
    http://www.debian.org/distrib/packages#search_packages
  • JingJing April 2010
    Thanks!

    I installed tk and modifed the original tcl script to use wish8.5 instad of wish8.3. I got passed that problem. Still needs some work as I am runnign a csh script using bash. Some arguments are not passed properly to the tcl. I am working on that.

    This issue is solved - installing tk get you wish8.5.
  • JingJing April 2010
    @ernia

    Thanks for tip linking wish 8.3 to the wish. That way I can keep the original tcl script as is.

    What I am trying to install is some kind of CAD program, not available as package. I hope I can make it work with Slitaz as I like how fast it runs on this old machine.

    Let me look into zsh now....
  • erniaernia April 2010
    to be true seawolf said that a little bit before me :-)
    i asked you about the program because if debian has a package for it you could try to install it converting debian package to slitaz package using tazpkg convert. you should do it for the packages and for the dependencies which does not have a slitaz package. you may want to check http://packages.debian.org/lenny/qcad
    PS if zsh works as a csh replacement put solved in the other thread too

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social