Install TCL:

opkg update
opkg install tcl

Find out what installed:

opkg files tcl

Package tcl (8.5.8-1) is installed on root and has the following files:
/usr/bin/tclsh8.5
/usr/lib/libtcl8.5.so
nano /mnt/sda1/hello.tcl

#!/usr/bin/tclsh8.5
puts {hello, world}

chmod 755 /mnt/sda1/hello.tcl

/mnt/sda1/hello.tcl

Error came out:

Can't find a usable init.tcl in the following directories:
    /usr/lib/tcl8.5 /usr/lib/tcl8.5 /lib/tcl8.5 /usr/library /library /tcl8.5.8/library /tcl8.5.8/library

Fix Error:

mkdir -p /usr/lib/tcl8.5
cd /usr/lib/tcl8.5
wget -O init.tcl https://www.dropbox.com/s/8if5kks92hmc8ep/init.tcl?dl=0 --no-check-certificate


Run it again:

/mnt/sda1/hello.tcl
hello, world

 

Comments powered by CComment