tclsh8.5 uninstall binary fails to uninstall over ssh

Posted by edwardotis on 2013-01-08 12:08

I was able to install the ActiveState tcl package over ssh, but now I cannot uninstall it.

-bash-3.00$ sudo ./uninstall
no display name and no $DISPLAY environment variable
    while executing
"load /home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/uninstall.tcl" line 37)
    invoked from within
"source      $startup"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/main.tcl" line 38)

So, I set DISPLAY=localhost:0

-bash-3.00$ ls
install_data.tcl  install_lib.tcl  install.tcl  install_welcome.txt  license-at8.5-thread.terms  payload  README-8.5-thread.txt
install_images    install.sh       install.tk   lib                  MANIFEST_at8.5.txt          pdemos   uninstall
-bash-3.00$ sudo ./uninstall
couldn't connect to display "localhost:0"
    while executing
"load /home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/uninstall.tcl" line 37)
    invoked from within
"source      $startup"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/main.tcl" line 38)

Any ideas?

Thanks,

Ed

grahams
ActiveState Staff
Wed, 2013-02-06 22:15

On Linux, the uninstall script is unnecessary. Simply remove the old Tcl directory, and change any $PATH and $MANPATH settings in your .profile.